Lesser known Git commands
I've seen more stash accidents than any other kind with git. Stashing is more dangerous than committing or branching, and to me it doesn't seem to provide any advantages... do people actually find stashing easier than branching? Is it just because when you branch you have to name it, and that causes friction? I stay away from stash.<p>Right from the man page: "If you mistakenly drop or clear stashes, they cannot be recovered through the normal safety mechanisms."<p><a href="https://git-scm.com/docs/git-stash" rel="nofollow">https://git-scm.com/docs/git-stash</a><p>--<p>I do like shorty. My version:<p><pre><code>  alias gits='git status -sb'
</code></pre>
--<p>My next fave is rebase the current branch against it's upstream branch point:<p><pre><code>  [alias]
    rearrange = "!git rebase -i $(git merge-base HEAD @{u})"
</code></pre>
git rearrange ftw.