![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
huskyui
如果不想被动,那就主动一点
展开
-
git修改远程仓库
起因 公司用的托管仓库是coding,然后今天仓库地址换了,更新项目时,提示报错,遂更新远程仓库 Coding 提示: Public key expired. 此公钥已经超过有效期,要继续使用请到 https://coding.net/user/account/setting/keys 更改设置。 fatal: Could not read from remote repository. Plea...原创 2020-02-10 16:08:23 · 947 阅读 · 0 评论 -
git文件生命周期以及如何管理文件
git configuration git config --local # (currentGitDir)/.git/config git config --global # ~/.gitconfig git config --system # /etc/gitconfig Priority local:max;system:min; file status life...原创 2019-05-02 22:20:57 · 276 阅读 · 0 评论 -
git 删除
delete file have three situation add before rm rf fileName add after and commit before git rm --cached <file> #remove from cache,file will be untracked git rm -f <file> #delete file force...原创 2019-05-03 23:28:04 · 957 阅读 · 0 评论 -
git branch
git basic branch git branch <branchName>#create branch git branch --list#show branch list, git checkout <branchName>#choose branch,HEAD is pointer of the current branch last commit creat...原创 2019-05-08 17:07:50 · 229 阅读 · 0 评论 -
git stash
Git 工具 - 储藏(Stashing) 经常有这样的事情发生,当你正在进行项目中某一部分的工作,里面的东西处于一个比较杂乱的状态,而你想转到其他分支上进行一些工作。问题是,你不想提交进行了一半的工作,否则以后你无法回到这个工作点。解决这个问题的办法就是git stash命令。 “‘储藏”“可以获取你工作目录的中间状态——也就是你修改过的被追踪的文件和暂存的变更——并将它保存到一个未完结变更的...原创 2019-05-08 17:15:34 · 108 阅读 · 0 评论