Skip to content

Instantly share code, notes, and snippets.

@jalex19100
Created November 5, 2021 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jalex19100/0e4a12ce4f17148d7528dcf1fbd445ec to your computer and use it in GitHub Desktop.
Save jalex19100/0e4a12ce4f17148d7528dcf1fbd445ec to your computer and use it in GitHub Desktop.
#!/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