Skip to main content
Add Shell syntax highlighting
Source Link
Benjamin Loison
  • 5.5k
  • 4
  • 18
  • 37

What can be really convenient:
Find the commit hash you want to squash on top of, say d43e15.

Now use

git reset d43e15
git commit -am 'new commit name'
git reset d43e15
git commit -am 'new commit name'

What can be really convenient:
Find the commit hash you want to squash on top of, say d43e15.

Now use

git reset d43e15
git commit -am 'new commit name'

What can be really convenient:
Find the commit hash you want to squash on top of, say d43e15.

Now use

git reset d43e15
git commit -am 'new commit name'
Improved wording. Improved punctuation. Improved formatting.
Source Link
Pang
  • 9.9k
  • 146
  • 85
  • 123

What can be really convenient: 
Find the commit hash you want to squash on top of;of, say it's d43e15 Now use.

git reset d43e15 Now use

git commit -am 'new commit name'

git reset d43e15
git commit -am 'new commit name'

What can be really convenient: Find the commit hash you want to squash on top of; say it's d43e15 Now use

git reset d43e15

git commit -am 'new commit name'

What can be really convenient: 
Find the commit hash you want to squash on top of, say d43e15.

Now use

git reset d43e15
git commit -am 'new commit name'
Source Link
Ariel Gabizon
  • 3.2k
  • 2
  • 18
  • 22

What can be really convenient: Find the commit hash you want to squash on top of; say it's d43e15 Now use

git reset d43e15

git commit -am 'new commit name'