![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
dijk
这个作者很懒,什么都没留下…
展开
-
Command: git
查看远程仓库地址git remote -v原创 2018-10-02 08:56:17 · 212 阅读 · 0 评论 -
gitignore: Problem: gitignore不起作用
Problemgitignore 不起作用Solutiongit rm -r --cached .git add .[seems command below can be omitted, just use above two commands]git commit -m 'update .gitignore'https://www.cnblogs.com/sloong/p/...原创 2019-02-18 13:38:19 · 193 阅读 · 0 评论 -
Git: Skill: 修改commit的注释
Git 修改commit的注释注释写错了,但是已经commit,此情况下修改注释# git commit --amend原创 2019-02-18 13:08:26 · 204 阅读 · 0 评论 -
CentOS: install git
CentOS install git// install gityum –y install git原创 2018-12-17 00:03:14 · 162 阅读 · 0 评论 -
Alpine: Docker commands
Alpine: Docker commands// update repositoriesvi /etc/apk/repositories// add mirrors below#/media/cdrom/apkshttp://mirrors.tuna.tsinghua.edu.cn/alpine/v3.8/mainhttp://mirrors.tuna.tsinghua.edu.c...原创 2018-12-16 14:38:47 · 228 阅读 · 0 评论 -
Win10: MINGW64: install zsh & git
Win10: MINGW64: install zsh & git// update$ pacman -Syu// install zsh & git$ pacman -S zsh git$ git --versiongit version 2.19.2$ zsh --versionzsh 5.6.2 (x86_64-pc-msys)// install ...原创 2018-12-16 13:13:04 · 1514 阅读 · 0 评论 -
Git: Override Local Version
Git: Override Local VersionF:\trunk>git fetch --allFetching originWarning: Permanently added the RSA host key for IP address 'xxx.xx.xxx.xx' to the list of known hosts.F:\trunk>git reset --...原创 2018-12-15 22:51:32 · 232 阅读 · 0 评论 -
Git: set up global user name and email
Git: set up global user name and emailAdministrator@PC2018 MINGW64 /$ git config --global user.name "dijk"Administrator@PC2018 MINGW64 /$ git config --global user.email abc@163.com原创 2018-12-15 22:45:05 · 920 阅读 · 0 评论 -
Git: git add
git addGit Version 1.xGit Version 2.xhttps://www.cnblogs.com/skura23/p/5859243.html原创 2018-12-03 20:39:17 · 223 阅读 · 0 评论 -
Intellij IDEA: Git: Commit后的几种情况
Intellij IDEA Git Commit后的几种情况Case 1: Commit --> Push右键菜单git --> Repository --> pushCase 2: Commit --> Undo Commit控制台Version Control --> Log --> Select the item ...原创 2018-11-25 15:10:01 · 1312 阅读 · 0 评论 -
Git: 强制覆盖本地工程命令
Git: 强制覆盖本地工程命令git强制覆盖本地工程命令git fetch --all// 不一定是origin/master,看之前是从哪里取代码的git reset --hard origin/mastergit pullgit强制覆盖本地工程命令(合成单条执行)git fetch --all && git reset --hard origin/mast...原创 2018-11-25 14:52:37 · 203 阅读 · 0 评论 -
Problem: Git: fatal Not a git repository
Git fatal: Not a git repositoryProblemfatal: Not a git repository (or any of the parent directories): .gitSolutiongit init原创 2018-11-25 19:12:51 · 210 阅读 · 0 评论 -
Git: 初始化及其取消
初始化# git initWill create .git directory取消初始化rm -rf .gitDelete .git directory原创 2018-11-12 22:23:27 · 2438 阅读 · 0 评论 -
intellij idea: git: You have not concluded your merge (MERGE_HEAD exists)
git: You have not concluded your merge (MERGE_HEAD exists)可以直接用线上最新版本覆盖到本地[注意本地版本做好备份]git fetch --allgit reset --hard origin/mastergit fetchReferencehttps://blog.csdn.net/xlgen157387/article/d...原创 2018-10-21 18:52:39 · 2735 阅读 · 0 评论 -
Git: Problem: github提交后没有记录Contributions且提交者名字没有链接无法点击
Git: Problem: github提交后没有记录Contributions且提交者名字没有链接无法点击Problem使用github时,发现提交的记录并没有统计在GitHub首页的Contributions Graph里(贡献图上没有绿块),而且提交列表里的名字也不能点击,没有链接。Solutiongit提交时填写的邮箱与github账号里的邮箱不一致导致,github是以邮箱关...原创 2019-03-04 08:22:37 · 545 阅读 · 0 评论