How do you push code with gitg?
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
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
Related videos on Youtube
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, 2022Comments
-
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?
-
Bill Lynch over 11 yearsWith regards to pulling: stackoverflow.com/questions/7299237/…
-
-
Magnetic_dud about 9 yearsThanks for the screenshot, couldn't find it otherwise
-
BuZZ-dEE almost 9 yearsin Gitg 3.16 I can not find a push option in that menu.
-
jgillich about 8 yearsNo, but here is the upstream issue: bugzilla.gnome.org/show_bug.cgi?id=763355
-
Elimination about 8 yearsDon't mean to be rude but... Why hasn't it been implemented yet? it's a pretty essential feature
-
Robert Zelník over 7 yearsThe 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 about 7 yearsAccording 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 about 7 yearsOh, 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 over 6 yearsThanks for your answer. I have 3.24 in Fedora 26 and it is not implemented there either.
-
Ivan Marjanovic over 5 yearsfor 3.17 I can confirm that there is no such option.
-
Dominic M almost 5 yearsI 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.