Created
November 5, 2021 15:06
-
-
Save jalex19100/0e4a12ce4f17148d7528dcf1fbd445ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://raygun.com/blog/git-aliases/ | |
# unstage files | |
git config --global alias.unstage 'reset HEAD --' | |
# stash changes including untracked files | |
git config --global alias.stash-unstaged 'stash -k -u' | |
# switch to previous branch | |
git config --global alias.pb 'checkout @{-1}' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment