threads / discuss / 26348

Re: Which git command to be used to keep my local repo updated with the recent changes made to the original repo

Subject: Re: Which git command to be used to keep my local repo updated with the recent changes made to the original repo

## tl;dr

One message between Jan 27, 2011 and Jan 27, 2011.

replies: 0people: 1as markdown or json

Victor Engmark· Jan 27, 2011, 11:43 UTC · lore
On 01/27/2011 11:13 AM, Akash wrote:
>
> I am new to git , So I just wanted to know which git command to be used to
> keep my local repo updated with the recent changes made to the original repo
$ git help pull

This command is a combination of `git fetch` (to get the commit data) and `git merge` (to merge that data with the current working copy).

Typically you want to get the data from the same place where you cloned from, in which case a simple `git pull` should be sufficient. If not, you should `git help remote` and `git help branch`.

-- 
Victor Engmark

← back to recent threads