I am working on a branch in git. When I do
git checkout
(commit id obtained from git log ), it is getting commit
git log
Is that commit in the other branch? Git checkout will just switch over to the other branch if the commit has happened in the other branch. You will want to merge the changes to your first branch if you want the code there.
Git checkout