git

Tag Archive

Rewind master if you forgot to create new branch in Git

My situation in Git was this: I'd continued to work in the master branch and made a few commits when I realized that I should do this new stuff in a separate branch and keep the master where it was several commits ago. Turns out this is very simple to do, but I thought that it was worth a blog post anyway. Read more...

2012-04-21

If you want to retrieve a single file from a specific repository without cloning or checking out anything, you can do this:

git archive --remote git@bitbucket.org:myusername/myrepo.git HEAD file-to-retrieve.rb | tar -x

2012-05-04

Reorganizing commits in Git branches

It may take some time digging around the Git commands to do exactly what you want. I had a situation where I've gone too far in a version branch and needed some reorganization. This is a short description of what commands I ended up running. Read more...

2011-04-13
Twitter: @mikeplate