git 你如何用gitg推送代码?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12961630/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you push code with gitg?
提问by labago
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?
我可以做我需要的所有其他事情,但是使用 GUI 我似乎无法弄清楚如何拉或推代码。在这种情况下,推动更重要,有人知道如何吗?
采纳答案by labago
Figured it out, not too difficult, just have to right click on the branch name when you are looking at your commit history
想通了,不太难,只需要在查看提交历史时右键单击分支名称
回答by jgillich
Anyone looking for this feature in gitg 3.14: I got confirmation from a developer that it hasn't been implemented yet.
在 gitg 3.14 中寻找此功能的任何人:我从开发人员那里得到确认,它尚未实现。
回答by klingac
On the history tab, right click on the name of the tracking branch
在历史选项卡上,右键单击跟踪分支的名称
回答by felipedie
Create on .git/hooks
a file named post-commit
and insert this code
在.git/hooks
名为的文件上创建post-commit
并插入此代码
#!/bin/bash
git push -u origin master
and turn this into a executable script
并将其转换为可执行脚本
chmod 755 post-commit
回答by Zac
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 :)
根据官方的项目路线图,是todo状态下的一个特性;目标版本是 0.3,所以我假设这个表没有更新,所以这个项目维护不善:我们可以想象真正的 gnome 编码器不使用 GUI :)
回答by ignaker
Push action is available starting from version 3.32.0
从 3.32.0 版本开始可以使用推送操作
回答by Nerol
You have to clone a repository previously. For example:
您必须先克隆一个存储库。例如:
git clone https://github.com/manuelkiessling/NodeBeginnerBook.git
git clone https://github.com/manuelkiessling/NodeBeginnerBook.git
Once cloned, go into the downloaded repository and execute gitk
克隆后,进入下载的存储库并执行 gitk