Skip to content

Instantly share code, notes, and snippets.

@carlohcs
Last active August 15, 2021 20:01
Show Gist options
  • Save carlohcs/7e0c781ae2c42123aaece55fbce2fa50 to your computer and use it in GitHub Desktop.
Save carlohcs/7e0c781ae2c42123aaece55fbce2fa50 to your computer and use it in GitHub Desktop.
Git Helpers

Git Helpers

Remove master/main branch from git and replace for one locally

git push origin otherbranch:master -f

Change author name/email from oldest commits

git rebase --root --exec "git commit --amend --author='AUTHOR NAME <email>' --no-edit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment