Created
May 9, 2016 12:11
-
-
Save tomasfejfar/ffc0aeda4713f4f21449ddb46af72ad8 to your computer and use it in GitHub Desktop.
Command to create remote stash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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