Snippets and tips to make you better with git
Better Git
Interact With a Branch, Without Checking it Out.
Tricks for interacting with a branch, without checking it out. Browse a directory, or view the contents of files.
Fetch not getting tags
I just ran into a little gotcha with regard how fetch handles tags. When it pulls down commits, you will usually see that it also pulls down tags. I was a little confused today when fetch was refusing to pull a tag that was clearly in the repository (“git ls-remote –tags“) lets you see tags available on the remote.
Find submodules by branch
Generally speaking Git is fantastic and easy to use – one of the few pain points is where submodules butt heads with branches.