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