git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
VEVictor 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
Message 1 of 1 in “Re: Which git command to be used to keep my local repo updated with the recent changes made to the original repo”
  1. Victor EngmarkJan 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.