項目中 Git 與 Gitee 代碼遷移與提交

1.所需文件中 右鍵打開 git Bash Here;

image.png

2. 遷移 gitee 倉庫代碼;

git clone https://gitee.com/hlxx_1/xxx.git

3.遷移完成 進入 xxx文件 先新建或修改你所需要修改的文件;然后在拉取 git pull

git pull

4.獲取并 查找 需要提交的 文件路徑 使用git status;

git status // 檢查文件狀態;

5.使用 git add 文件路徑 添加;

git add src/views/login/index.vue

6.使用 git commit -m '上傳文件描述'

git commit -m  '修改登錄以后跳轉路徑'

7.推送文件上 gitee 使用 git push;在這個之前 如果擔心會沖突,就先使用 git pull 拉取后 再 git push;

git push 
//或————
git push -u origin master
image.png
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容