A few git tips you didn't know about
mislav.uniqpath.com
mislav.uniqpath.com
But do note that instead of this:
git checkout -t origin/feature
You can do this: git checkout feature
It'll find a branch named "feature" in one of your remotes and make a local branch that tracks it. pwd | pbcopy # Copies the working directory to the clipboard
pbpaste outputs the clipboard contents: cd `pbpaste` # cd to the directory in the clipboard
(I use this to go to the same dir in a second terminal)
(There's Linux equivalent called, xsel does the same.) # stick in .irbrc
def copy(str)
IO.popen('pbcopy', 'w') { |f| f << str.to_s }
end
def paste
`pbpaste`
end
def ep
eval(paste)
endPython version (adjust to pbcopy/pbpaste if on OS X): http://gist.github.com/488852