Egit:一步添加,提交和推送?

时间:2012-06-14 14:58:22

标签: eclipse egit

在我使用git在版本控制下修改eclipse中的文件时,我执行以下3个步骤大部分时间:

1) Add to index
2) Commit
3) Push

使用EGit在eclipse中一步完成上述3个步骤是否可行?我知道可以合并两个第一步:

http://www.vogella.com/blog/2010/12/25/git-alias-add-commit/

2 个答案:

答案 0 :(得分:4)

这在新的EGit版本2.1中成为可能。在提交对话框的底部,您现在可以选中“将更改推送到上游”选项。

另请参阅:EGit 2.1: New and Noteworthy

答案 1 :(得分:-1)

这会将修改后的文件添加到暂存区域,然后一步确认。

git commit -am "message for commit"

git add file1 file2 file3 && git commit -m "message for commit"

相关问题