![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
老汉带你推推推
转了一圈,发现还是把笔记托管省心。。。自己搞有点儿累。。。。这就是让专业的人做专业的事儿。
就是广告TMD多了!!!
展开
-
[git]Git revert(git 回退)
0x0001起因merge错了branch. 本地revert 了,但是不知道怎么push上去。0x0002方法git reset –hard HEAD~1(or git reset –hard 0x0003其他参考,没用过,因为找不到那个蓝色的revert小按钮。。。擦擦擦https://help.github.com/articles/reverting-a-pull-request/1.In原创 2017-03-17 13:06:31 · 485 阅读 · 0 评论 -
[git]常用
git add 之后发现错了,多添加了很多东西,需要去除,还在还没提交 git reset原创 2018-04-03 16:43:00 · 93 阅读 · 0 评论 -
[gradle]设置默认用户名和密码
0x0001起因 项目里需要引用private的branch,但是密码又不能存储在代码里,如下: repositories { google() jcenter() maven { url 'https://maven.fabric.io/public' } maven { url 'https://raw.githubusercontent....原创 2018-07-03 14:46:06 · 5209 阅读 · 0 评论 -
[git]新建库,以及和本地的文件夹关联
命令行指令 Git 全局设置 git config --global user.name "xxx " git config --global user.email " xxx@email" 创建新版本库 git clone https://code.aliyun.com/xxx/yyy.git cd test touch README.md git add README.md git comm...转载 2018-11-09 23:05:35 · 297 阅读 · 0 评论 -
[Git]rebase
git rebase origin/master git push -f原创 2018-11-04 21:16:05 · 716 阅读 · 0 评论 -
[bash]在ps1上显示当前git branch的name
#!/bin/bash # # DESCRIPTION: # # Set the bash prompt according to: # * the active virtualenv # * the branch/status of the current git repository # * the return value of the previous command...原创 2018-11-05 14:49:03 · 1065 阅读 · 0 评论 -
[git]保存用户名密码
git config credential.helper store原创 2018-11-20 22:29:42 · 204 阅读 · 0 评论 -
git 添加tag
这篇文章写的不错,就不复制了,直接去看吧: https://blog.csdn.net/b735098742/article/details/78935748转载 2018-11-26 17:46:58 · 686 阅读 · 0 评论