Here's a recipe for creating a branch in git with no ancestry, no doubt this has been noted on the internet by many already.
git symbolic-ref HEAD refs/heads/upstream
git rm --cached -r .
git commit --allow-empty -m 'initial upstream branch'
git checkout -f master
Why would one want to do the above? Well to keep two disconnected projects in one git repo, that's why!
Related posts:
Memory debuggers and garbage collectors for C/C++
Posted
Alternatives to using GOLD, Maui for accounting and banking for HPC systems
Posted
The ultimate sandbox game, ever!
Posted
Using gource to visualise projects stored in version control
Posted
Add a comment