Description:I have to add a local project to git repository as a new project which previously has binding with an other git repository ,so I need to first completely remove the previous binding/mapping or tracking of git repository then starting from scratch commit it as a new project on my git repository
Posted by: Umer khan | Posted on: Oct 22, 2019
2
1)Go to the root directory of your project and make .git folder visible it is a hidden folder by default.(for windows, open your project folder in file explorer -->view-->Hidden items, enable this check)
2)Open your project's root folder in command prompt and run following three commands where first one will remove everything inside .git folder, second line will remove the .git empty directory and third one will initiate fresh instance.
Then you can create a fresh clone of your empty git repository and merge your project to that one.
Replied by: Peter Andre | Replied on: Oct 24, 2019