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.
How to configure SSH Authentication to Github
https://dev.to/jajera/how-to-configure-ssh-for-github-authentication-2b53
How to change remote
A common cause is cloning using the default (HTTPS) instead of SSH. You can correct this by going to your repository, clicking “Clone or download”, then clicking the “Use SSH” button above the URL field and updating the URL of your origin remote like this:
git remote set-url origin git@github.com:username/repo.git
You can check if you have added the remote as HTTPS or SSH using:
git remote -v
This is documented at GitHub: Switching remote URLs from HTTPS to SSH.
I also schedule running the update blog script to run daily for any update from my Obsidian.