Posts Tagged ‘git’

November 15, 2011 2

Subdirectory Checkouts with git sparse-checkout

By in git

If there is one thing I miss about SVN having switched to git (and trust me, it’s the only thing), it is the ability to checkout only a sub-tree of a repository. As of version 1.7, you can check out just a sub-tree in git as well! Now not only does git support checking out [...]

Tags: , , ,

March 23, 2011 4

Merge Two Git Repositories Into One

By in git

A few weeks ago I tweeted: “Just did 2 subtree merges in order to combine 2 partially-related git repos into a single repo and still maintain history. #gitrocks” Wanna learn how to do it? Here we go… TL;DR # create new project as the parent $ mkdir new_parent_project $ cd new_parent_project $ git init $ [...]