25

I can do everything else I need but with the GUI I cannot seem to figure out how to pull or push code. Pushing is more important in this case, anyone know how?

labago
  • 1,218
  • 2
  • 12
  • 27
  • With regards to pulling: http://stackoverflow.com/questions/7299237/how-can-i-do-a-git-pull-in-the-gitg-gitx-visual-tool – Bill Lynch Oct 18 '12 at 18:48

7 Answers7

20

Anyone looking for this feature in gitg 3.14: I got confirmation from a developer that it hasn't been implemented yet.

jgillich
  • 56,006
  • 5
  • 49
  • 79
8

Figured it out, not too difficult, just have to right click on the branch name when you are looking at your commit history

labago
  • 1,218
  • 2
  • 12
  • 27
5

On the history tab, right click on the name of the tracking branch

screenshot

user5877732
  • 351
  • 2
  • 18
klingac
  • 453
  • 3
  • 10
  • Thanks for the screenshot, couldn't find it otherwise – Magnetic_dud Mar 31 '15 at 11:19
  • The screenshot is probably from older version of gitg (0.2.X), which supported checkout, push, cherry-pick and many other useful features, that don't work in the current version of gitg. – Robert Zelník Nov 29 '16 at 13:57
  • 4
    According to the NEWS file on Gitg's source code (https://git.gnome.org/browse/gitg/tree/NEWS), branch push was a feature regression on version 0.3.1 as a part of its rewrital. To this day, it has yet to be brought back, sadly. – Xerz Apr 04 '17 at 12:29
  • 3
    Oh, apparently it's been recently written and sent to a patch, hopefully it'll be added into the next version of Gitg. See https://bugzilla.gnome.org/show_bug.cgi?id=763355. – Xerz Apr 04 '17 at 12:33
1

Create on .git/hooks a file named post-commit and insert this code

#!/bin/bash
git push -u origin master

and turn this into a executable script

chmod 755 post-commit
Vitor M. Barbosa
  • 2,566
  • 22
  • 33
felipedie
  • 19
  • 1
1

Push action is available starting from version 3.32.0

See NEWS file in "Release 3.32.0" gitg commit

ignaker
  • 11
  • 3
0

According to the official project roadmap, it is a feature in todo state; the target release is 0.3 so I assume this table it is not updated so this project is poorly maintained: we can imagine real gnome coders do not use GUIs :)

enter image description here

Zac
  • 4,076
  • 3
  • 33
  • 40
-4

You have to clone a repository previously. For example:

git clone https://github.com/manuelkiessling/NodeBeginnerBook.git

Once cloned, go into the downloaded repository and execute gitk

jgillich
  • 56,006
  • 5
  • 49
  • 79
Nerol
  • 1