Why we are using git fetch and git merge instead of git pull
Asked by sai mohan ayinam about a year ago
2
why we are using git fetch and git merge instead of git pull when some one comiits the code and merged it in the branch and we need to get the changes in to our local machine?
1 Answer
2
You can use git pull only , no need to use git fetch. Sometimes you don't want to fetch and merge but only fetch, hence we have this option. It also adds to the symmetry, like when we don't automatically push our code into remote repository , we explicitly do it .
show more answers
Your answer