Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 1.08 KB

README.md

File metadata and controls

13 lines (12 loc) · 1.08 KB

Helpful Git Commands to Know

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