使用git將本地代碼提交到碼雲上去


碼雲為開源中國基於git的代碼網絡托管平台,將代碼托管、開發與項目管理工具融為一體。
今天第一次將自己的web項目代碼上傳至碼雲,過程中遇到一些問題,此處進行總結與過程的演示:
當我們在碼雲上創建好項目后,結構如圖所示:

 

 代碼開發完成之后發現代碼無誤之后就需要將他提交到碼雲上去,

 

首先需要找一個文件夾,

鼠標右鍵執行git clone

然后再將自己代碼copy進去,

 

@cxyy MINGW64 /d/學習內容/新建文件夾/springboot_activeMq (master)
$ git init
Reinitialized existing Git repository in D:/學習內容/新建文件夾/springboot_activeMq/.git/

@cxyy MINGW64 /d/學習內容/新建文件夾/springboot_activeMq (master)
$ git remote add origin https://gitee.com/chenxiufen/springboot_activeMq.git
fatal: remote origin already exists.

@cxyy MINGW64 /d/學習內容/新建文件夾/springboot_activeMq (master)
$ git remote add origin1 https://gitee.com/chenxiufen/springboot_activeMq.git

@cxyy MINGW64 /d/學習內容/新建文件夾/springboot_activeMq (master) $ git add Nothing specified, nothing added. Maybe you wanted to say 'git add .'?


@cxyy MINGW64 /d/學習內容/新建文件夾/springboot_activeMq (master) $ git add. git: 'add.' is not a git command. See 'git --help'. The most similar command is add

按照如下命令執行就可以了,這是第一次提交,如果將代碼拉到idea中操作就不是這樣了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM