Skip to content

Instantly share code, notes, and snippets.

@fabriziogiordano
Last active January 6, 2016 12:34
Show Gist options
  • Select an option

  • Save fabriziogiordano/17ec7fcd7ae64ae47e1a to your computer and use it in GitHub Desktop.

Select an option

Save fabriziogiordano/17ec7fcd7ae64ae47e1a to your computer and use it in GitHub Desktop.
Git Help

Squash Commits

switch to master branch

git checkout master

ensure our master is up to date

git pull remoteRepoName master

combine all commits

git rebase -i master

then

pick fb554f5 This is commit 1
squash 2bd1903 This is commit 2
squash d987ebf This is commit 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment