Base of Difference | Git Pull | Git Fetch |
Basic definition | Here DevOps used this Git Pull command to update the working directory with the latest changes from the remote server. | Here Git Fetch commands used to gets new data from a remote repository to the local repository. |
Used for | Here we use Git pull command to get the data to the local repository and the data is merged in the working repository | Here in Git fetch command we used to get the data to the local repository but the data is not merged in the working repository |
Command Example | Command is :- git pull origin | Command is :- git fetch origin |