Skip to content

cusnsoftware/git-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 

Repository files navigation

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>

About

How to use github cli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published