Skip to content

Instantly share code, notes, and snippets.

@ajpinedam
Created March 20, 2019 02:03
Show Gist options
  • Save ajpinedam/10f2d893dff3a0e36582c6c5530a75b8 to your computer and use it in GitHub Desktop.
Save ajpinedam/10f2d893dff3a0e36582c6c5530a75b8 to your computer and use it in GitHub Desktop.
git config --global alias.co checkout // move between branches or checkout a file
git config --global alias.st status // Status of the repository
git config --global alias.last 'log -1' // Last commit
git config --global alias.bn 'checkout -b' // Create branch and move to it
git config --global alias.cm 'commit -m' // Commit with Message
git config --global alias.ca 'clean -dfx' // Clean unwanted changes using .gitignore
git config --global alias.ul 'reset --soft HEAD~1' // Unload last commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment