Skip to content

Instantly share code, notes, and snippets.

@tommyip
Created August 23, 2023 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommyip/9fece7f3b3c5fa33bee46ed26c01a4a6 to your computer and use it in GitHub Desktop.
Save tommyip/9fece7f3b3c5fa33bee46ed26c01a4a6 to your computer and use it in GitHub Desktop.
The missing Git stash commands
# Pass in stash message as the first argument
function git-stash-unstaged --description "Only stash unstaged changes"
git commit -m "git-stash-unstaged"
git stash push -u -m $argv[1]
git reset --soft HEAD^
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment