Skip to content

Instantly share code, notes, and snippets.

@xjeeh
Last active June 15, 2023 18:51
Show Gist options
  • Save xjeeh/721a70cea02677efa7e111e0b94d730c to your computer and use it in GitHub Desktop.
Save xjeeh/721a70cea02677efa7e111e0b94d730c to your computer and use it in GitHub Desktop.
Git aliases
[user]
email = xjeehz@gmail.com
name = Jefferson Santos
[alias]
lazy = "!f() { git add .; git commit --amend --no-edit; git push -f origin HEAD; }; f"
delete-all = "!f() { git branch | grep -v 'develop' | grep -v 'master' | xargs git branch -D; }; f"
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment