Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 757 Bytes

File metadata and controls

24 lines (16 loc) · 757 Bytes

How to use git cli(command line interface)

git clone repo_link

you can clone the repo to your computer

git add .

this command adds a change in the working directory to the staging area

git commit -m Your comment about the changes you made

this command captures a snapshot of the project's currently staged changes.

git push origin <branch_name>

default branch name main or master
The origin represents a remote name where the user wants to push the changes.
git push command push commits made on a local branch to a remote repository.

git branch <branch_name>

git branch --delete <branch_name>

To delete local branch, use this command

git checkout <branch_name>

git checkout -b <branch_name>