Git Fetch vs Git Pull difference in Tamil #git #interview #github

preview_player
Показать описание
The main difference between git pull and git fetch lies in how they update your local repository with changes from a remote repository:

git pull: This command fetches changes from the remote repository and automatically merges them into your current branch. Essentially, git pull is a combination of git fetch followed by git merge. It updates both your local repository's copy of the remote branch and your working directory with the latest changes.

git fetch: This command fetches changes from the remote repository and updates your local repository's copy of the remote branch, but it does not automatically merge those changes into your current branch. Instead, it brings the changes into your local repository, allowing you to review them before deciding how to incorporate them into your work.

In summary, while both git pull and git fetch retrieve changes from a remote repository, git pull also automatically merges those changes into your current branch, whereas git fetch only updates your local repository's copy of the remote branch, leaving the decision to merge or rebase up to you.
Рекомендации по теме
Комментарии
Автор

you only made me understand difference between them

SreeLakshmi-zh
join shbcf.ru