默认记住账号密码
Ctrl Alt T执行下面的命令:
git config --global credential.helper store
重新提交一次,输入邮箱密码:
git statusgit add *git commit -m "注释"git push origin master//第一次仍然需要输入邮箱密码
再次提交时,不需要再输入邮箱了:
git statusgit add *git commit -m "注释"git push origin master//此时直接push到远端分支
————————————————————————————————————
git 删除远端文件夹
ls -a //查看本地分支rm -rf filename //删除本地文件夹git rm --cached -r filename //删除缓存的文件夹git commit -m "delete filename " //提交删除git push origin master //推送到远端
————————————————————————————————————
git冲突,提交报错 master -> master(non-fast-forword)
git pullgit push --force origin master
相关博文:
————————————————————————————————————
常用git命令
git initgit statusgit add *git commit -m "注释"git remote add origin "url" //连接远端地址git pull origin mastergit push origin master