eclipse使用git上传及更新代码笔记

        个人使用的是eclipse  4.4.2版本,本身已安装git

上传:准备工作

        1.在window/prefrences/team/git/configuration菜单下User Setting中点击Add Entry,添加如下内容:

                key中user.name    value中用户名

                key中user.email    value中email地址

       先ping通github.com地址

        2.否则在C:\Windows\System32\drivers\etc下hosts中增加github.com的ip及域名地址(我后来去掉了这个配置也可以,原因可能是下面这个)

        3.在window/prefrences/team/git/configuration菜单下User Setting中点击Add Entry,添加如下内容:

                key填写http.sslVerify   value填写false

        4.在eclispe开发工具中找到eclipse.ini文件,增加如下内容:

                -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

                        配置上面ini文件原因:我的jdk是1.7 ,eclispe是4.4


更新:准备工作:

        在window/prefrences/team/git/configuration菜单内的Responsitory Setting内

        点击open,在config内配置如下内容,就可以pull更新远程仓库的内容了。


        [branch "master"]
    remote = origin
    merge = refs/heads/master
[remote "origin"]
    url = 自己远程仓库地址
    fetch = +refs/heads/*:refs/remotes/origin/*




你可能感兴趣的:(git)