Skip to main content
added 162 characters in body
Source Link
alex
  • 492.2k
  • 205
  • 890
  • 992

Unstash the stash...

git stash pop 

...use git add in patch mode...

git add -p 

...and then commit that...

git commit -m "Partial stashed commit" 

This is what quickly came to my head without reading the docs. Leo's answer has much better way to achieve this.

Unstash the stash...

git stash pop 

...use git add in patch mode...

git add -p 

...and then commit that...

git commit -m "Partial stashed commit" 

Unstash the stash...

git stash pop 

...use git add in patch mode...

git add -p 

...and then commit that...

git commit -m "Partial stashed commit" 

This is what quickly came to my head without reading the docs. Leo's answer has much better way to achieve this.

added 106 characters in body
Source Link
alex
  • 492.2k
  • 205
  • 890
  • 992

UnstageUnstash the stash, use git add...

git stash pop 

...use git add in patch mode and...

git add -p 

...and then commit that...

git commit -m "Partial stashed commit" 

Unstage the stash, use git add in patch mode and then commit that.

Unstash the stash...

git stash pop 

...use git add in patch mode...

git add -p 

...and then commit that...

git commit -m "Partial stashed commit" 
edited body
Source Link
Rose Perrone
  • 64k
  • 61
  • 216
  • 251

UnstashUnstage the stash, use git add in patch mode and then commit that.

Unstash the stash, use git add in patch mode and then commit that.

Unstage the stash, use git add in patch mode and then commit that.

Source Link
alex
  • 492.2k
  • 205
  • 890
  • 992
Loading