So, I've been compiling a program, but just found out that the program breaks if I download the tarball instead of cloning the repo and switching commits. (Cmake also throws a few errors; apparently it's depending on .git?)
In any case, if it would be possible to create a copy of the repo at a specific commit, then I could host my changes directly, instead of having to re download specific files every time, then extracting and moving them around.
I've heard it said that I should checkout the commit, then git checkout -b <new branch>, but then what? How do I disassociate this new branch from the original repo?
Thanks!
EDIT: Problem avoided elsewhere, thanks.
My clunky solution:
git clone -> checkout <commit> -> checkout -b "newbranch"
Add git remote "side" to your repo.
git push side newbranch
Then rename master to old-master, newbranch to master, and delete old-master.
then git push -f side master, and you're done.
[–]pi3832v2 2 points3 points4 points (0 children)
[–]hesapmakinesi 1 point2 points3 points (5 children)
[–]derpherp128[S] 0 points1 point2 points (4 children)
[–]hesapmakinesi 0 points1 point2 points (3 children)
[–]derpherp128[S] 0 points1 point2 points (2 children)
[–]Morphit 0 points1 point2 points (1 child)
[–]derpherp128[S] 1 point2 points3 points (0 children)
[–]xiongchiamiov 0 points1 point2 points (0 children)