博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
常用git操作
阅读量:4692 次
发布时间:2019-06-09

本文共 910 字,大约阅读时间需要 3 分钟。

默认记住账号密码

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

转载于:https://www.cnblogs.com/mobaiyu/p/11202453.html

你可能感兴趣的文章
4.如果给一个单位做相关的软件,你认为最重要的是需要得到谁的支持,为什么?...
查看>>
视图基本
查看>>
提高Java代码质量的Eclipse插件之Checkstyle的使用具体解释
查看>>
【莫比乌斯反演】——蒟蒻的理解
查看>>
ORM系列之二:EF(4) 约定、注释、Fluent API
查看>>
cnblogs latex公式
查看>>
js中的替换
查看>>
SKTextureAtlas类
查看>>
自己写的网页放在github里面
查看>>
关于Git的学习
查看>>
nginx proxy文件编写总结
查看>>
决策树应用
查看>>
LightOJ_1248 Dice (III)
查看>>
C#后台正则表达式截取字符
查看>>
Major Performance Impacts
查看>>
C primer Plus 作业第四章
查看>>
mysql函数大全
查看>>
Rectangle
查看>>
刷题向》关于搜索+tarjan的奇怪组合题 BZOJ1194 (normal+)
查看>>
AC自动机模板
查看>>