1 查看文件处于什么状态 git status
2 跟踪一个新文件 (添加文件到下一个提交中) git add file
3 删除 git rm
4 重命名操作 git mv fromFile toFile
5 重新提交 git commit --amend
6 取消暂存 git reset file
7从远程拉取文件 git pull 远程服务器 从远程拉取所有文件 git fetch
8 推送本地更改到远程 git push 远程服务器
1 查看文件处于什么状态 git status
2 跟踪一个新文件 (添加文件到下一个提交中) git add file
3 删除 git rm
4 重命名操作 git mv fromFile toFile
5 重新提交 git commit --amend
6 取消暂存 git reset file
7从远程拉取文件 git pull 远程服务器 从远程拉取所有文件 git fetch
8 推送本地更改到远程 git push 远程服务器