I want to map my working folder with existing bitbucket repository
What happened
I had a working folder connected with Bitbucket Repository. And I was working on a branch. The branch was already pushed and exist on Bitcucket remote. I have committed some changes locally, and then while committing one more changes SourceTree hanged and did not respond for half an hour. I will not blame source tree, it was my machine. So had to restart my machine. after that i cannot push any changes and was getting file corrupted error. Then, I deleted the .git folder :(
Problem
I was searching for any way to map the local folder with existing git repo, could not find anything. Is it possible or not?
Plan B
I can map my existing repository to a new folder and then copy the changed folders to the mapped folder. Not sure, that will work or not? It may work, but i am looking for any other solution better than this or a proper way to do that