diff --git a/cheats/git.cheat b/cheats/git.cheat index 61933f8..04e5131 100644 --- a/cheats/git.cheat +++ b/cheats/git.cheat @@ -9,9 +9,21 @@ git config --global user.email # Initializes a git repository git init +# Clone a git repository +git clone -b + +# View all available remote for a git repository +git remote --verbose + # Adds a remote for a git repository git remote add +# Renames a remote for a git repository +git remote rename + +# Remove a remote for a git repository +git remote remove + # Checkout to branch # Change branch git checkout @@ -46,6 +58,9 @@ git pull --ff-only # Merges changes on one branch into current branch git merge +# Abort the current conflict resolution process, and try to reconstruct the pre-merge state. +git merge --abort + # Displays log of commits for a repo git log