Git

Git Cheat Sheet

May 2, 2020
Git

Note: This cheat sheet is available on Github with over 1K starts. Commands Getting Started git init or git clone url Configuration git config --global color.ui true git config --global push.default current git config --global core.editor vim git config --global user.name "John Doe" git config --global user.email [email protected] git config --global diff.tool meld Working with Local Branch Branching # See the list of all local branches git branch # Switch to existing local branch git checkout branchname # Checkout current branch into a new branch, named new-branch-name git checkout -b new-branch-name # Merge branch-name into the current branch git merge branchname # Merge branch without fast forwarding. ...