Command | Purpose |
---|---|
git clone <url> |
Clone a new git to local machine |
git branch status | List all branch status |
git checkout -b <branch-name> |
Checkout & create new branch from standing branch |
git checkout -b <local branch-name> origin/<remote branch name> |
Checkout & create new branch from origin remote branch |
git push -d <remote_name> <branch_name> |
Push changes to remote branch |
git branch -d <branch_name> |
Delete a branch |
git branch -vv | See all verbose and upstream for all branches |
git branch --set-upstream-to origin/<branch> |
Set upstream to remote branch from local standing branch |
git remote add origin <git url> |
Add remote git into local |
-
Notifications
You must be signed in to change notification settings - Fork 0
Helpful Git Commands For Developers To Know
License
lqtruong/git-commands
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Helpful Git Commands For Developers To Know
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published