eclipse 代碼提交碼雲

eclipse 項目代碼提交碼雲android

一、 註冊帳號,登陸碼雲git

二、建立項目github

三、進入建立好的項目,賦值http地址windows

四、右鍵項目,team-----> share project,建立本地倉庫eclipse

五、創建push鏈接fetch

六、填寫git遠程倉庫地址,帳號,口令url

此處可能會報錯,若是點next報 cannot open git-upload-pack 這個錯orm

打開eclipse中的windows-->Preferences-->Team-->Git-->Configuration-->User Settings.而後點Add Entry新建一個鍵值對,輸入http.sslVerify=false。親測可用ip

七、添加提交分支ssl

到這裏和git的連接就基本結束配置結束了,接下來是提交代碼了,提交代碼前須要從遠程倉庫pull

八、pull

pull的時候可能會遇到 The current branch is not configured for pull這個報錯

一. 找到項目目錄的 .git文件夾 下的 config文件

二. 配置添加一下配置便可

[core]
    repositoryformatversion = 0
    filemode = false
    logallrefupdates = true
    [branch "master"] 
        remote = origin 
        merge = refs/heads/master 
    [remote "origin"] 
        url = https://github.com/androidzhaoxiaogang/rocket.git   (修改成本身的url)
        fetch = +refs/heads/*:refs/remotes/origin/*

三. 從新pull

九、提交本地倉庫commit

若是是選擇commit and push 則不須要 push to upstream,由於資源已經被提交到遠程倉庫

九、點擊commit後,push to upstream提交到遠成倉庫

相關文章
相關標籤/搜索