利用git上傳本地文件、文件夾到Github

 

安裝好GIT完成後,找到Git bash,雙擊打開。html

 

第一步:從git獲取項目到本地

git clone https://github.com/zhangwei900808/awbeci-ssb.git

 

第二步:在本身的GIT倉庫遠程建立項目:awbeci-ssb

  

第三步:進入剛纔clone的文件目錄下,而後增長源分支地址到你項目遠程分支列表中,命令

cd awbeci-ssb
git remote add awbeci-ssb https://github.com/cwn132/awbeci-ssb.git
 

第四步:關聯github倉庫

//新建一個repository時會出現下面的代碼,直接複製便可
git remote add awbeci-ssb https://github.com/cwn132/awbeci-ssb.git

注意:git

若是出現錯誤:fatal: remote origin already exists,則執行如下語句:github

git remote rm awbeci-ssb

  

第五步:放到本身的GIT倉庫

git push awbeci-ssb master  
相關文章
相關標籤/搜索