how can I do a git pull in the gitg / gitx visual tool?

24,341

Solution 1

You cannot directly pull from git gui, but given than a pull is a fetch followed by a merge, you can fetch the remote (in the remote menu and fetch from), and then merge the remote branch into yours (Merge menu and Local merge, select tracking branch).

Solution 2

In gitg 0.2.4, you cannot pull directly, so you also fetch and merge:

  • fetch by going in the repository properties, select the remote repo and cli
  • display all branches of the remote, and merge the branch you want (origin/master most of the time) by right-clicking on the tip of the branch
Share:
24,341
Michael Durrant
Author by

Michael Durrant

rails ruby rspec rock

Updated on April 28, 2020

Comments

  • Michael Durrant
    Michael Durrant almost 4 years

    I can do a push using gitg and push my code to the remote master branch but I can't see any option to do a git pull.

    I am on Ubuntu 10 and 11

    • knittl
      knittl over 12 years
      Your first two sentences are contradicting. »I can do a pull, but I can't see any option to pull« say what?
    • Michael Durrant
      Michael Durrant over 12 years
      good point. I meant push in the first instance. I've updated the question.
  • Michael Durrant
    Michael Durrant over 12 years
    This sounds perfect! Unfortunately I cannot find the remote menu or fetch_from :(
  • CharlesB
    CharlesB over 12 years
    Are you sure you're in the git gui? (File menu -> start Git Gui, or git gui from command line) The gitk doen't have this.
  • Michael Durrant
    Michael Durrant over 12 years
    thanks CharlesB :) I don't find that in gitg on Ubuntu 11.04 but I am trying a download of 'cola git gui' to see if that helps...
  • Michael Durrant
    Michael Durrant over 12 years
    Ahh yes, 'git gui' is a different tool from the 'gitg' that I have been using and once I downloaded it (again that's 'Cola git gui' for anyone searching). I will update your answer and also check it as the answer.
  • CharlesB
    CharlesB over 12 years
    @MichaelDurrant: mmh sorry I thought you meant gitk