rgamber
rgamber

Reputation: 5849

Remote repository in gitk

I am trying to learn Git at a very basic level from this tutorial.

I was able to create a local repository for my project, add files and commit to it, clone the repository to a remote repository (using --bare), and then push the changes of my project to the remote repository. So far, so good.

Now when I do gitk --all, I can correctly see my local git history, but it does not show the remote repository. This is the page I'm using to understand gitk.

When I cloned the remote repository to a new Git repository in another directory, all my files were available. So the remote repository seems to be working fine.

Is the remote repository supposed to be seen in gitk? What am I not understanding? How can I get a visual for the remote repository?

Upvotes: 3

Views: 5615

Answers (1)

Amber
Amber

Reputation: 526573

Try running git fetch to update the local "view" of the remote repository, then run gitk --all again. That should result in labels for the remote refs showing up as well.

(Note that this assumes that you've added the remote repository as a named remote in your local repository. If not, you won't be able to use gitk to review remote pointers.)

Upvotes: 6

Related Questions