Vault7: CIA Hacking Tools Revealed
Navigation: » Latest version
Owner: User #524297
Git Tips & Tricks
The "Oh no I should have been working in a branch" Trick
$ git stash # takes staged changes and 'stashes' them for later, and reverts to HEAD.
$ git stash branch new-branch-name # creates new branch and switches to it, then takes the stashed changes
# and stages them in the new branch. fancy!