I still struggle a lot with managing Git remotes. Well, with managing Git.
So far, to test development branches, I was creating separate directories where I pulled the complete source code. But it takes a lot of disk space, and makes for many folders since I use out-of-source builds.
I would really like to manage all FreeCAD code in a single source directory.
I git pull FreeCAD from the original SF Git repo at git://git.code.sf.net/p/free-cad/code
I would like to import ian.rees' Github repo in it to check out his Drawing-dev branch.
I followed this old post from yorik:
Code: Select all
git remote add ianrrees git://github.com/ianrrees/FreeCAD_tinkering.git
Code: Select all
git remote
Code: Select all
ianrrees
origin
Code: Select all
git branch -a
How do I list the ianrrees branches? And how do I checkout the Drawing-dev branch? I've tried this which didn't work:
Code: Select all
git checkout remotes/ianrrees/Drawing-dev
error: pathspec 'remotes/ianrrees/Drawing-dev' did not match any file(s) known to git.