- git init 创建 .git 文件夹
- 创建 .gitignore文件 : node_modules/
- git add . 将全部文件设置为 staged 状态
- git commit -m "Initial commit" 首次commit
git status 查看状态
文件修改后再次add: git add changed_file
然后commit:git commit -m "some message"
git log 查看全部 commit

git status 查看状态
文件修改后再次add: git add changed_file
然后commit:git commit -m "some message"
git log 查看全部 commit