1.git init
2.更改默认的远程仓库
git remote add origin https://gitee.com/xxxxx/xxxxxx.git
3.查看当前的远程仓库
git remote -v
4.git add .
5.git status
6.git commit -m "练习的demo"
7.git push -u origin "master"
查看仓库分支
git branch
推送到分支
git push -u origin "demoGame"
8.强制推送
git push -f origin "master"
修改代码之后提交 循环467
使用Git进行代码提交时,在VSCode中过滤掉特定的文件夹
- 创建 .gitignore 文件
/.creator/
/.idea/
/build/
3.如果已经上传到仓库里面
node_modules文件名
git rm -r --cached node_modules
4.添加.gitignore文件并提交更改
git add .gitignore
git commit -m "更新 .gitignore 文件配置"
5.git push -u origin "master"