我们可以把 Git 分成两个部分,一个是远程仓库 Remote Repository,还有一个是本地环境 Development Environment
命令
git clone
git add
git commit -m ‘commit’
git push
git pull
拉取远程仓库的代码
git status
查看 Working Directory 和 Staging Area 中更改的文件
1 2 3 4 5 6 7 8 9 10 11 12
> git status On branch pre Changes tobe committed: (use "git reset HEAD <file>..."to unstage)
modified: src/config.js
Changes not staged for commit: (use "git add <file>..."toupdate what will be committed) (use "git checkout -- <file>..."to discard changes in working directory)