Git
Useful Links
- Git Branches Tips
- Github CLI, brings GitHub to your terminal
- Move files from one repository to another, preserving git history
vcstool – working with multiple repositories
vcs import --input file_name.repos # or URL
Create/Rename a Branch
Use git switch --orphan <new branch>
to create an empty branch with no history.
git switch --orphan <new branch>
git commit --allow-empty -m "Initial commit on orphan branch"
git push -u origin <new branch>
Move/Change current branch name (e.g. to ‘main’)
git branch -M main
git pull
over all subdirectories
for d in *; do (cd $d && git pull --ff-only); done
Submodule
git submodule update --init --recursive