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

Re: Question regarding: git pull --no-commit origin

From
Geoff Russell <geoffrey.russell@gmail.com>
Date
Mar 26, 2007, 01:16 UTC
Message-ID
<93c3eada0703251816lc430e03l71ee2ffaa3d8796@mail.gmail.com>
In-Reply-To
<20070325233823.GA13247@spearce.org>
On 3/26/07, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 25 quoted lines
> Geoff Russell <geoffrey.russell@gmail.com> wrote:
> > I do: git pull --no-commit origin
> >
> > Receive messages ending in:
> >
> >        ...
> >       Updating 6a29cdd..b7ba33d
> >       Fast forward
> >       interface/testfile |    1 +
> >       1 files changed, 1 insertions(+), 0 deletions(-)
> >       create mode 100644 interface/testfile
> ...
> > However when I do: git commit -a
> >
> > I'm told: nothing to commit (working directory clean)
> >
> > Am I misunderstanding something?
>
> The pull was strictly a fast-forward.  No merge commit was necessary
> to record the merge, so we didn't actually honor the --no-commit
> argument.
>
> In other words, your current branch did not contain any commits
> that were not in the origin branch you were pulling from.  So
> a real merge wasn't required here.

Thanks Shawn, but my situation is I have the MASTER repository and I'm pulling from a TEST repository. I want to double check the updates other people have done on the TEST repository, and if they are okay, then commit them.

If --no-commit won't let me do this then perhaps I need something like:
          git pull origin:testing
          git checkout testing
           .... test
          git checkout master ; git pull . testing
i.e., make a branch for the test changes and then merge this branch.

Cheers, Geoff

>
> --
> Shawn.
>
Previous: Shawn O. PearceNext: Jeff King
Message 3 of 5 in “Question regarding: git pull --no-commit origin”
  1. Geoff RussellMar 25, 2007
  2. Shawn O. PearceMar 25, 2007
  3. Geoff RussellMar 26, 2007
  4. Jeff KingMar 26, 2007
  5. Geoff RussellMar 26, 2007

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.