I created a a new branch to one of my repos, then I did a couple of commits. At this moment I realized that the naming used for this new branch was wrong.
I was not sure how to do this from top of my head, and while quickly Googling, I realized as usual that there are apparently one millions way how people do their stuff.
Then I decided to ask ChatGPT (at least the one running in Bing) and gave the following steps:
Today I Learned Sometimes I have needed/wanted to keep authentication via SSH keys to my two Github accounts in the same machine. For such, the following arrangement in the .ssh/config file seems to work:
Github Account Number 1: alex Host github.com-alex HostName github.com AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/alex-key IdentitiesOnly yes Github Account Number 2: xander Host github.com-xander HostName github.com AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/xander-key IdentitiesOnly yes Explanation: Host: It is like an alias for the host to which I will connect.
Today I Learned If a file is added/tracked once by git and then added to the .gitignore list, it might continue to be tracked. Yes, despite being in the .gitignore list.
it might have to do with the git cache and the way to workaround this is:
git rm –cached FILENAME