How do you push code with gitg?
Asked Answered
J

7

26

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?

Johannejohannes answered 18/10, 2012 at 18:47 Comment(1)
With regards to pulling: #7299737Tagore
J
9

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

Johannejohannes answered 18/10, 2012 at 19:30 Comment(3)
in Gitg 3.16 I can not find a push option in that menu.Untenable
for 3.17 I can confirm that there is no such option.Maureenmaureene
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.Sylvia
C
20

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

Corrigendum answered 12/11, 2014 at 15:4 Comment(3)
No, but here is the upstream issue: bugzilla.gnome.org/show_bug.cgi?id=763355Corrigendum
Don't mean to be rude but... Why hasn't it been implemented yet? it's a pretty essential featureYim
Thanks for your answer. I have 3.24 in Fedora 26 and it is not implemented there either.Incombustible
J
9

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

Johannejohannes answered 18/10, 2012 at 19:30 Comment(3)
in Gitg 3.16 I can not find a push option in that menu.Untenable
for 3.17 I can confirm that there is no such option.Maureenmaureene
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.Sylvia
P
5

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

screenshot

Pumice answered 18/10, 2012 at 19:49 Comment(4)
Thanks for the screenshot, couldn't find it otherwiseAutonomic
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.Oliva
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.Oriflamme
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.Oriflamme
B
1

Push action is available starting from version 3.32.0

See NEWS file in "Release 3.32.0" gitg commit

Behindhand answered 11/4, 2020 at 13:32 Comment(0)
I
0

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
Incident answered 18/8, 2015 at 18:37 Comment(0)
I
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

Irs answered 23/3, 2018 at 6:38 Comment(0)
D
-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

Drais answered 12/12, 2014 at 10:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.