
Git
dijk
这个作者很懒,什么都没留下…
展开
-
Command: git
查看远程仓库地址 git remote -v原创 2018-10-02 08:56:17 · 244 阅读 · 0 评论 -
gitignore: Problem: gitignore不起作用
Problem gitignore 不起作用 Solution git 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 · 226 阅读 · 0 评论 -
Git: Skill: 修改commit的注释
Git 修改commit的注释 注释写错了,但是已经commit,此情况下修改注释 # git commit --amend原创 2019-02-18 13:08:26 · 245 阅读 · 0 评论 -
CentOS: install git
CentOS install git // install git yum –y install git原创 2018-12-17 00:03:14 · 205 阅读 · 0 评论 -
Alpine: Docker commands
Alpine: Docker commands // update repositories vi /etc/apk/repositories // add mirrors below #/media/cdrom/apks http://mirrors.tuna.tsinghua.edu.cn/alpine/v3.8/main http://mirrors.tuna.tsinghua.edu.c...原创 2018-12-16 14:38:47 · 267 阅读 · 0 评论 -
Win10: MINGW64: install zsh & git
Win10: MINGW64: install zsh & git // update $ pacman -Syu // install zsh & git $ pacman -S zsh git $ git --version git version 2.19.2 $ zsh --version zsh 5.6.2 (x86_64-pc-msys) // install ...原创 2018-12-16 13:13:04 · 1626 阅读 · 0 评论 -
Git: Override Local Version
Git: Override Local Version F:\trunk>git fetch --all Fetching origin Warning: 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 · 280 阅读 · 0 评论 -
Git: set up global user name and email
Git: set up global user name and email Administrator@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 · 964 阅读 · 0 评论 -
Git: git add
git add Git Version 1.x Git Version 2.x https://www.cnblogs.com/skura23/p/5859243.html原创 2018-12-03 20:39:17 · 252 阅读 · 0 评论 -
Intellij IDEA: Git: Commit后的几种情况
Intellij IDEA Git Commit后的几种情况 Case 1: Commit --> Push 右键菜单 git --> Repository --> push Case 2: Commit --> Undo Commit 控制台 Version Control --> Log --> Select the item ...原创 2018-11-25 15:10:01 · 1358 阅读 · 0 评论 -
Git: 强制覆盖本地工程命令
Git: 强制覆盖本地工程命令 git强制覆盖本地工程命令 git fetch --all // 不一定是origin/master,看之前是从哪里取代码的 git reset --hard origin/master git pull git强制覆盖本地工程命令(合成单条执行) git fetch --all && git reset --hard origin/mast...原创 2018-11-25 14:52:37 · 233 阅读 · 0 评论 -
Problem: Git: fatal Not a git repository
Git fatal: Not a git repository Problem fatal: Not a git repository (or any of the parent directories): .git Solution git init原创 2018-11-25 19:12:51 · 270 阅读 · 0 评论 -
Git: 初始化及其取消
初始化 # git init Will create .git directory 取消初始化 rm -rf .git Delete .git directory原创 2018-11-12 22:23:27 · 2701 阅读 · 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 --all git reset --hard origin/master git fetch Reference https://blog.youkuaiyun.com/xlgen157387/article/d...原创 2018-10-21 18:52:39 · 2782 阅读 · 0 评论 -
Git: Problem: github提交后没有记录Contributions且提交者名字没有链接无法点击
Git: Problem: github提交后没有记录Contributions且提交者名字没有链接无法点击 Problem 使用github时,发现提交的记录并没有统计在GitHub首页的Contributions Graph里(贡献图上没有绿块),而且提交列表里的名字也不能点击,没有链接。 Solution git提交时填写的邮箱与github账号里的邮箱不一致导致,github是以邮箱关...原创 2019-03-04 08:22:37 · 597 阅读 · 0 评论