#https://sumo47.github.io/Sumit-kumar-Learning-Git/
code - git checkout -b feature-branch
checked using git status using git status
added all files using git add .
commit - git commit -m "added new file"
git push origin feature-branch
created file in main branch ( in line 34 there is written card title)
changed written word in line no 34 in collaborator-branch
Mergeed in Main from collaborator-branch using git merge collaborator-branch
going to feature-branch using git checkout feature-branch
and changed in line 34 again
added and commited in feature-branch
Clearly, we can see that there is a conflict occurring in the main branch. Now, I have to resolve the conflict manually.
and added , committed in main branch
i have done some changes in main branch for switching previous commit
and used code - git checkout <hash>
for switching to previous commit
after write command code - git reset --hard Head~1
i can able to undo the last commit
i have done 3 commit for revert
now i want to come back first commit than i have to use some command like code - git revert <hash>
there is some conflict occur , have to resolve
After resolve conflict , revert has been successfully done
and after resolve conflict i have successfully pulled from collaborator-branch in main branch