Git aliases: stash force apply & stash force pop
Stash force apply
git config --global alias.sfa  '!git stash show -p | git apply'
Stash force pop
git config --global alias.sfp '!git stash show -p | git apply && git stash drop'
Or edit your ~/.gitconfig file:
[alias]
   sfa = !git stash show -p | git apply
   sfp = !git stash show -p | git apply && git stash drop    Written by Gregory Pakosz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Git 
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#