Skip to content

Instantly share code, notes, and snippets.

@keithrozario
Created June 22, 2020 14:49
Show Gist options
  • Save keithrozario/95a9ece8d3ddbabd5091b76f53b9b914 to your computer and use it in GitHub Desktop.
Save keithrozario/95a9ece8d3ddbabd5091b76f53b9b914 to your computer and use it in GitHub Desktop.
removing old commits

git checkout -b <branch_name> git --set-upstream origin <branch_name> git rebase -i

Squash all commits where necessary

:qw

Change commit message where necessary

git push +<branch_name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment