Skip to content

Instantly share code, notes, and snippets.

@deepchand11
Last active April 11, 2021 17:20
Show Gist options
  • Save deepchand11/fa41c3508f5dbf3d7eb45f21f644a85f to your computer and use it in GitHub Desktop.
Save deepchand11/fa41c3508f5dbf3d7eb45f21f644a85f to your computer and use it in GitHub Desktop.
Git Commands
Squashing Commits history
git checkout my_branch
git rebase -i HEAD~4
// Change the pick to fixup for the commits you want to squash
// If any conflicts occur git rebase --skip
// Reset the rebase rm -fr ".git/rebase-merge"
git push --force origin my_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment