1.git clone 地址
clone到本地
2.git status
查看緩存上傳的文件
3.git add -A
提交所有修改
注:git add上傳本地項(xiàng)目所有變化的命令三種有 git add -A(所有修改)藕各、git add -u黔宛、git add .
git add -A 提交所有變化
git add -u 提交被修改(modified)和被刪除(deleted)文件,不包括新文件(new)
git add . 提交新文件(new)和被修改(modified)文件,不包括被刪除(deleted)文件
4.git commit -a -m"修改的注釋"
本次提交的備注
5.git config --global user.email "you@example.com"
輸入郵箱
6.git config --global user.name "Your Name"
輸入賬號(hào)
7.git config --global user.password "Your password"
輸入密碼
注:根據(jù)具體情況git commit -a -m""之后會(huì)有提示
如:
$ git commit -a -m"第一次上傳"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'admin@DESKTOP-71M6BFA.(none)')
以上提示代表只需要輸入郵箱和賬號(hào)
8.git push
提交