文章标签 » egit

Git/EGit | reset 和 revert 的区别(Eclipse 图文)

git的世界里有后悔药吗?

有的。不仅有,还不止一种:Reset 和 Revert。它们有什么区别呢?先说结论吧。

Reset Revert
作用 将某个commit之后的push全部回滚 将某个指定的commit回滚
历史记录(轨迹)
是否可作用于单个文件 否(都是作用于commit,与文件无关)

下面来说说具体例子。

Continue Reading »

Eclipse | 同步时报 cannot open git-upload-pack(已解决)

在 Eclipse 中使用 egit 同步 GitHub 上的代码时报错:

网上翻了下,原来加一个配置就行了。

https://github.com/YoungZHU/CollectionCode4Java.git: cannot open git-upload-pack

打开 Eclipse,在工具栏中依次点开 Windows–>Preferences–>Team–>Git–>Configuration–>User Settings,然后点 Add Entry 新建一个键值对,
Key http.sslVerify
Value false

如图:

Eclipse配置截图