git 小记

1.修改忽略文件.gitignore文件未生效的问题git

git rm -r --cached .
git add .
git commit -m 'update .gitignore'

2.https方式创建本地和远程库的链接后每次git push/pull时要输入用户名密码问题code

git config --global credential.helper storeit

##通常就会在计算机当前用户名根目录下生成 .git-credentials  文件date

##此时push/pull输入一次用户名密码后下次就不用再每次都要输入了密码

相关文章
相关标签/搜索