Re: Which git command to be used to keep my local repo updated with the recent changes made to the original repo
- From
- Victor Engmark <victor.engmark@terreactive.ch>
- Date
- Jan 27, 2011, 11:43 UTC
- Message-ID
- <4D415A70.9000406@terreactive.ch>
- In-Reply-To
- <29999288.56562.1296123202254.JavaMail.trustmail@mail1.terreactive.ch>
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