Maven / GIT Interview Questions
Difference between git pull and fetch.
Git fetch gathers any commits from the target branch that do not exist in your current branch and stores them in your local repository. However, it does not merge them with your current branch.
Git pull update your current HEAD branch with the latest changes from the remote server. This means that pull not only downloads new data and also directly integrates it into your current working copy files.
More Related questions...
git fsckcommand. How do I view the file changes (diff) before committing in GIT? Explain git blame command. What is a pull request in git? What is a .GITKEEP file?