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 · 875 阅读 · 0 评论 -
git文件生命周期以及如何管理文件
git configurationgit config --local # (currentGitDir)/.git/configgit config --global # ~/.gitconfiggit config --system # /etc/gitconfigPrioritylocal:max;system:min;file status life...原创 2019-05-02 22:20:57 · 274 阅读 · 0 评论 -
git 删除
delete filehave three situationadd beforerm rf fileNameadd after and commit beforegit rm --cached <file> #remove from cache,file will be untrackedgit rm -f <file> #delete file force...原创 2019-05-03 23:28:04 · 951 阅读 · 0 评论 -
git branch
git basic branchgit branch <branchName>#create branchgit branch --list#show branch list,git checkout <branchName>#choose branch,HEAD is pointer of the current branch last commitcreat...原创 2019-05-08 17:07:50 · 227 阅读 · 0 评论 -
git stash
Git 工具 - 储藏(Stashing)经常有这样的事情发生,当你正在进行项目中某一部分的工作,里面的东西处于一个比较杂乱的状态,而你想转到其他分支上进行一些工作。问题是,你不想提交进行了一半的工作,否则以后你无法回到这个工作点。解决这个问题的办法就是git stash命令。“‘储藏”“可以获取你工作目录的中间状态——也就是你修改过的被追踪的文件和暂存的变更——并将它保存到一个未完结变更的...原创 2019-05-08 17:15:34 · 106 阅读 · 0 评论