Posts Tagged ‘git’

June 23, 2013 0

Versioning Dotfiles with Git

By in git

It’s become quite common to see ‘dotfiles’ repositories across GitHub, and for good reason. Versioning your home directory is a great way to maintain backups of your dotfiles, share with others, learn from others, and makes configuring a new machine a bit easier. Many users, however, don’t actually version their home directory. A common approach […]

Tags:

November 15, 2011 6

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 6

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 $ […]

Tags: