Git commands to uncommit, un stage changes and remove the changes

I checkout between multiple local repo, since I work on multiple projects. Before every check out I need to commit, which means I’m unable to keep my last commit msg same as that on git cloud repo. I need some help. Git commands : revert or uncommit last changes but keep in staged area Move… Read More Git commands to uncommit, un stage changes and remove the changes

how to push my project to github in a default branch, or merge two github branches remotely?

I created an editor project by angular, I want to push it in githup, I followed the following steps (I executed the following git commands): git init git add . git commit -m "push editor project" all this in branch local master. I create a github account. I create an "editorangular" repository in branch main.… Read More how to push my project to github in a default branch, or merge two github branches remotely?

git config user.name "FIRST_NAME LAST_NAME" is it important to have the name exactly on github username?

I don’t know where they came from Maruf Hossain but my GitHub config name is mickeymaruf, so I want to see my profile picture as well. So I tried by changing my git config name "Maruf Hossain" and "mickeymaruf" for two different times and saw that both are working now and only showing my username… Read More git config user.name "FIRST_NAME LAST_NAME" is it important to have the name exactly on github username?

I am unable to push a git repository to my github account after the latest macbook system update

After updating my laptop (MacBook Air) I am unable to push my repository to git. Everything works fine till the last moment when I have to push to the -u origin main. I don’t know if it helps but I haven’t run into problems while pulling and cloning. This is what I get when I… Read More I am unable to push a git repository to my github account after the latest macbook system update