一、 Eclipse中将工程初始化为本地库
工程右键->Team->Share project->Git->next->Use or create repository in parent folder of project->选中工程->Create Repository->finish

这样则在我们工程目录下新建了一个.git文件 相当于执行了git init命令
window->preferences->team->git configuration->repository settings 就能检测到当前工程的git配置文件

二、Eclipse中设置本地库签名范围
window->preferences->team->git configuration->repository settings->Add Entry
<Key , Value>的键值对 Key输入user.name user.email

三、Eclipse中图标(相当于git status)
window->preferences->team->git->history->lable decorations
folder有未提交的修改
tracked正常
untracked ? 新建了文件但是没有追踪(相当于新建文件没有执行git add)
ignored
dirty 文件里面有未提交的修改
staged 添加到了暂存区
added 刚刚添加到暂存区

本文详细介绍了如何在Eclipse中使用Git进行版本控制,包括工程初始化为本地库、设置用户签名、忽略特定文件、本地库操作、远程库push推送、clone克隆以及冲突解决的步骤。
最低0.47元/天 解锁文章
4213

被折叠的 条评论
为什么被折叠?



