• 1.5k
  • 102
  • 3.5k

Changes in wrong branch in git

May 25 2024 4:44 AM

Dear All I have two questions 

1- I did not change the branch and did my changes in main branch now I want to remove these changes from main branch and transfer them to ABC branch , I have commited all thoses changes as well but I did not push these commiited changes to remote main branch.

2-My project which I clone from the git is producing issues and errors but I have local backup of the project in another drive which works fine but it is not connected with git , so How I can get the previous git clone copy working as the local copy works as the git remote repository is also shared with lot of other guys so I do not want to put my working repo(local backup) repo on git and invite all of them agian .

Answers (3)