# cannot see git-fetch result in gitk

3 messages from 2007-12-01 to 2007-12-02. Participants: Tilman Schmidt, Jakub Narebski.
Thread: https://gitlist.dev/t/11076

## Tilman Schmidt, 2007-12-01 12:34

Subject: cannot see git-fetch result in gitk
Message-ID: <475154DB.4040606@imap.cc>
URL: https://gitlist.dev/e/475154DB.4040606%40imap.cc

```
I'm still learning my way around git and trying to understand how it
works. So after reading
http://www.kernel.org/pub/software/scm/git/docs/howto/rebase-from-internal-branch.txt
I wanted to try and understand the command sequence

git fetch origin
git rebase FETCH_HEAD

by looking at what it does with gitk. But after the first command I do
not see any change at all in gitk. Only after the second one do the
newly fetched objects appear in the gitk display.

Simple question: why?

Thanks,
Tilman

-- 
Tilman Schmidt                          E-Mail: tilman@imap.cc
Bonn, Germany
Yes, I have searched Google!


```

## Jakub Narebski, 2007-12-01 13:55

Subject: Re: cannot see git-fetch result in gitk
Message-ID: <m3zlwuwmce.fsf@roke.D-201>
URL: https://gitlist.dev/e/m3zlwuwmce.fsf%40roke.D-201
In-Reply-To: <475154DB.4040606@imap.cc>

```
Tilman Schmidt <tilman@imap.cc> writes:

> I'm still learning my way around git and trying to understand how it
> works. So after reading
>   howto/rebase-from-internal-branch.txt
> I wanted to try and understand the command sequence
> 
> git fetch origin
> git rebase FETCH_HEAD
> 
> by looking at what it does with gitk. But after the first command I do
> not see any change at all in gitk. Only after the second one do the
> newly fetched objects appear in the gitk display.
> 
> Simple question: why?

Did you run just "gitk"? By default gitk displays only current branch,
while git-fetch changes remote-tracking branches only. Try 
"gitk --all", or "gitk origin/master ..." enumerating explicitely all
remote branches.

-- 
Jakub Narebski
Poland

```

## Tilman Schmidt, 2007-12-02 15:15

Subject: Re: cannot see git-fetch result in gitk
Message-ID: <4752CC2C.800@imap.cc>
URL: https://gitlist.dev/e/4752CC2C.800%40imap.cc
In-Reply-To: <m3zlwuwmce.fsf@roke.D-201>

```
Am 01.12.2007 14:55 schrieb Jakub Narebski:
> Did you run just "gitk"? By default gitk displays only current branch,

Thanks, that explains it. It might be a good idea to mention that
in the manpage.

> while git-fetch changes remote-tracking branches only. Try 
> "gitk --all", or "gitk origin/master ..." enumerating explicitely all
> remote branches.

Ok, thanks, will try that next time git-fetch actually finds something
to fetch. ;-)

-- 
Tilman Schmidt                          E-Mail: tilman@imap.cc
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)


```
