Search notes:

Adding my tq84 branch to github repositories

Clone forked repository.
git clone https://github.com/ReneNyffenegger/forked-repo
cd forked-repo
Only one branch?
git branch
What does the following do? Probably, it only seems to be necessary when checking out the personal fork to use the tq84 branch(?)
git branch -a
Create the tq84 branch
git checkout -b tq84
Add tq84-c-debug submodule.
cd foo/bar/baz
git submodule add https://github.com/ReneNyffenegger/tq84-c-debug
Go back to the repositories root
cd ../../..
Note the added .gitmodules file:
git status .
Commit:
git commit . -m "Added submodule tq84-c-debug"
Push tq84 branch
git push -u origin tq84

Synchronizing forked repo from original repository

cd forked-repo
git checkout master
git pull https://github.com/OriginalOwner/repo 
git push https://github.com/ReneNyffenegger/forked-repo master
git checkout tq84
git merge master

Cloning on anther machine

After cloning, the tq84 branch seems not visble expcept when using git branch -a.
git branch -a
Neverttheless, it seems it can be checked out:
git checkout tq84

Empty submodule ...

Apparently, the submodule can still be empty on another machine.
The following git command might help:
git submodule update --init --force --remote

See also

GitHub

Index