Skip to content

Instantly share code, notes, and snippets.

@jordanst3wart
Last active September 27, 2023 09:35
Show Gist options
  • Save jordanst3wart/f07d78217f18d0d70b91bfb349964224 to your computer and use it in GitHub Desktop.
Save jordanst3wart/f07d78217f18d0d70b91bfb349964224 to your computer and use it in GitHub Desktop.
[user]
name = fill me
email = fill@example.com
[alias]
squash = "!f(){ git reset --soft $(git merge-base master $(git branch --show-current)) && git commit -m \"${1}\";};f"
update = "!f(){ git checkout master && git pull && git checkout $(git branch --show-current) && git rebase;};f"
[push]
autoSetupRemote = true
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment