Skip to content

Instantly share code, notes, and snippets.

@tomasfejfar
Created May 9, 2016 12:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomasfejfar/ffc0aeda4713f4f21449ddb46af72ad8 to your computer and use it in GitHub Desktop.
Save tomasfejfar/ffc0aeda4713f4f21449ddb46af72ad8 to your computer and use it in GitHub Desktop.
Command to create remote stash
[alias]
; creates timestamped branch rst-XXXXX and pushes it to default remote (origin)
rst = "!rst() { export tmpBranch=rst-$(date +%s) && git add -A && git checkout -b $tmpBranch && git commit -m 'WIP remote stash' && git push --set-upstream origin $tmpBranch; }; rst"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment