更新远程分支列表
项目根目录右键->Git Bash Here
命令:git remote update origin --prune
拉去历史版本
1、命令
git checkout SHA值
2、 SHA值在gitlab项目目录的历史版本中查看 
更新本地项目地址
git remote set-url origin
删除git的提交校验
.git文件夹的hooks文件夹,找到pre-commit文件,删除即可
给项目配置不提交文件夹
1、项目根目录创建文件:.gitignore 
2、.gitignore文件内容(以下文件我配置的是不提交“node_modules”、“dist”文件夹)
.DS_Store
node_modules/
dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
**coverage/
tests/e2e/reports
selenium-debug.log
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.local
package-lock.json
yarn.lock
|