Learning Git

These are my collection of learning using Git and Github. How to update submodule To update a Git submodule, navigate into the submodule directory and check out the desired commit or branch. Then, go back to the main repository and commit this change using the command git submodule update --init --recursive to ensure all submodules are updated properly. How to install subtree in Fedora 44 sudo dnf install git-subtree How to switch branch Command Description git switch Switch to an existing branch. git switch -c Create a new branch and switch to it. git switch –detach Switch to a specific commit in a detached state. ...

July 4, 2026 · 2 min · Jaycee