git
罗小树
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
如何删除github上的某个文件夹?
sudo rm -rf dirgit add -Agit commit -m 'remove dir'git push origin master参考链接:https://blog.csdn.net/Jarvenman/article/details/78835851https://www.zhihu.com/question/20418177转载 2018-06-04 09:32:59 · 983 阅读 · 0 评论 -
windows的git bash设置永久别名
通过右键菜单,打开git bash比如现在想要让grep命令能够给筛选出的文本添加颜色,要运行命令grep --color键入命令:cd /etc/profile.dvim aliases.sh # 编辑aliases文件在里面加上下面这行,保存并退出该文件。重新打开git bash就可以了...原创 2018-09-07 11:27:11 · 4894 阅读 · 0 评论 -
git配置用户名与邮箱
参考链接:https://www.cnblogs.com/gudi/p/6597660.html1.用户名和邮箱地址的作用用户名和邮箱地址是本地git客户端的一个变量,每次commit都会使用用户名和邮箱来记录2.查看用户名和邮箱地址git config user.namegit config user.email3.修改用户名和邮箱地址(用户级别,适用于当前登录用户...转载 2019-04-18 15:09:20 · 574 阅读 · 0 评论 -
git在提交之前撤销add操作
参考链接:https://www.cnblogs.com/wuchanming/p/5428897.html问题:使用git时,未添加.ignore文件前使用git add .将所有文件添加到库中,不小心将一些不需要加入版本库的文件加到了版本库中。由于此时还没有提交,所以不存在HEAD版本,不能使用git reset HEAD命令解决:git rm -r --cached ....转载 2019-04-24 17:24:50 · 1893 阅读 · 1 评论 -
git fatal: HttpRequestException encountered
使用Git下载或者更新代码时出现fatal:HttpRequestException encountered提示信息,但是它又不会影响Git的正常使用由于Github 禁用了TLS v1.0 and v1.1,须更新Windows的git凭证管理器。https://github.com/Microsoft/Git-Credential-Manager-for-Windows/relea...转载 2019-07-08 12:00:21 · 504 阅读 · 0 评论
分享