Skip to contentSkip to conversation

cannot see git-fetch result in gitk

DISCUSSION Tilman Schmidt 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

Signature · 3 lines
Tilman Schmidt                          E-Mail: [email protected]
Bonn, Germany
Yes, I have searched Google!
#1 lore raw
Quoted 5 lines · Tilman Schmidt

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

Quoted 8 lines

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.

Signature · 2 lines
Jakub Narebski
Poland
#2 lore raw

Am 01.12.2007 14:55 schrieb Jakub Narebski:

Quoted 1 line

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.

Quoted 3 lines

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. ;-)

Signature · 4 lines
Tilman Schmidt                          E-Mail: [email protected]
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)