git
Wake_me_Up123
我是程序媛~~~~~~~~~~
展开
-
error: cannot lock ref ‘refs/remotes/origin/douyin/open‘: ‘refs/remotes/origin/douyin‘ exists;
解决方案:git branch -D douyingit gc --prune=nowgit remote prune origingit pull原创 2021-10-09 09:50:50 · 281 阅读 · 0 评论 -
git - 基本操作
自己的分支合develop:git checkout developgit pull --rebase origin developgit checkout feature/20190711-story-view-1762git merge developgit版本回退:git reset --hard 21adf736f6cde8ad56077017581e90a098bb6151git push -f -u origin dev删除Untracked filesgit clean -f原创 2020-07-03 16:28:44 · 283 阅读 · 0 评论 -
git -设置简化命令
[alias]co = checkoutci = commitbr = branchst = statuslg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit原创 2020-06-18 09:13:43 · 470 阅读 · 0 评论 -
git 证书过期配置证书
cat ~/.ssh/id_rsa.pub 生成is_rsa证书粘贴进User Settings->SSH Keys->jiangliqin@pcuu.com目录下cat ~/.ssh/known_hosts 复制内容vim ~/.ssh/known_hosts 粘贴进来清理垃圾:git prune + git gc原创 2020-06-17 15:29:37 · 959 阅读 · 0 评论 -
git三种文件状态
新建一个文件:Untracked files修改一个文件:Changes not stages for commit运行命令git add 之后:Changes to be committedgit commit 提交代码撤销修改:撤销add:git reset HEAD <file>或git reset HEAD –从Changes to be committed到...原创 2019-04-01 15:29:15 · 382 阅读 · 0 评论