Skip to content

Instantly share code, notes, and snippets.

@rileypeterson
Last active January 18, 2023 17:24
Show Gist options
  • Save rileypeterson/23267d65d7c037726db7f106e30bfe95 to your computer and use it in GitHub Desktop.
Save rileypeterson/23267d65d7c037726db7f106e30bfe95 to your computer and use it in GitHub Desktop.
# Automatically sets upstream tracking
git config --global push.default current
# Autocomplete
brew install git bash-completion
# Create local branch which tracks existing remote branch
# https://stackoverflow.com/a/9537923/8927098
git checkout --track origin/<branch_name>
# Show untracked files (instead of folder)
# https://michaelheap.com/git-status-untracked/
git config --global status.showUntrackedFiles all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment