Git mistakes - 1
Git mistakes - 1 Hello Coders… I hope you are having a great weekend. Today I am going to talk about My Git mistake . I was working with a project where I tried to add opentracing to it (which is still not working properly). First I created a new branch from my development branch using : git checkout -b tracing Then tried to add opentracing to it, there were many errors and I was fixing one by one and committed all the codes properly. At certain point I had to revert my git branch to a previous commit I made. Then I was working on that. Didnt merge the commits back to original tracing branch. When I try to merge them with my tracing branch , I was getting a lots of errors. Tried to fix them ( merge conflicts ), but they were not working as expected. Finally I found a solution for this problem. This is kind of shortcut. Create a new branch from the current HEAD detached branch. Eg : git branch tmp git-hash-id Delete remote branch git push origin