If you're running on Windows, Vista/W7 has `clip` as an equivalent to pbcopy. One project I was working on, the sysadmin didn't give us any access to the server, so we had to instruct him to use git each time an update went through (daily). `git rev-parse HEAD | clip` was the fastest way to get the "revision your tree should be at after pulling" then and send it to him.
7 comments
[ 3.1 ms ] story [ 28.3 ms ] threadPython version (adjust to pbcopy/pbpaste if on OS X): http://gist.github.com/488852
But do note that instead of this:
You can do this: It'll find a branch named "feature" in one of your remotes and make a local branch that tracks it.