
Move a subdirectory into its own Git repo, with history
Need to pull a subdirectory out of repo A and create a new repo B out with it? Including full history and branches? Okay, here’s how.
Need to pull a subdirectory out of repo A and create a new repo B out with it? Including full history and branches? Okay, here’s how.
If you’re unfamiliar with Git’s “alias” feature, it provides a way to create shortcuts for other Git commands, which can save you a lot of time. They’re easy to setup and maintain too. Let’s see how.
There’s a feature of every GitHub repo that in my experience doesn’t get a ton of love, and that’s the wiki. In all fairness, I’m not sure how much love it deserves - it’s sorely lacking in features. But did you know it’s a separate repo that you can clone and manipulate locally?