How do you push code with gitg?

17,318

Solution 1

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

Solution 2

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

Solution 3

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

screenshot

Solution 4

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

Solution 5

Push action is available starting from version 3.32.0

See NEWS file in "Release 3.32.0" gitg commit

Share:
17,318

Related videos on Youtube

labago
Author by

labago

Currently working for Education First as a Front End Developer. Aside from that, I do a lot of programming and website projects on the side.

Updated on June 07, 2022

Comments

  • labago
    labago almost 2 years

    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?

  • Magnetic_dud
    Magnetic_dud about 9 years
    Thanks for the screenshot, couldn't find it otherwise
  • BuZZ-dEE
    BuZZ-dEE almost 9 years
    in Gitg 3.16 I can not find a push option in that menu.
  • jgillich
    jgillich about 8 years
    No, but here is the upstream issue: bugzilla.gnome.org/show_bug.cgi?id=763355
  • Elimination
    Elimination about 8 years
    Don't mean to be rude but... Why hasn't it been implemented yet? it's a pretty essential feature
  • Robert Zelník
    Robert Zelník over 7 years
    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.
  • Xerz
    Xerz about 7 years
    According to the NEWS file on Gitg's source code (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
    Xerz about 7 years
    Oh, apparently it's been recently written and sent to a patch, hopefully it'll be added into the next version of Gitg. See bugzilla.gnome.org/show_bug.cgi?id=763355.
  • alfC
    alfC over 6 years
    Thanks for your answer. I have 3.24 in Fedora 26 and it is not implemented there either.
  • Ivan Marjanovic
    Ivan Marjanovic over 5 years
    for 3.17 I can confirm that there is no such option.
  • Dominic M
    Dominic M almost 5 years
    I only see an option for fetching in gitg 3.30 on manjaro and the authentication for that is somehow broken. Frankly, just alt-tab to a terminal and push from there with a properly set up ssh key.