![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
文章平均质量分 60
Karson Tiger
这个作者很懒,什么都没留下…
展开
-
git branch命令解析
git branch命令,不同参数下的功能原创 2022-10-09 17:29:55 · 5055 阅读 · 2 评论 -
Git版本恢复和出现*(branch)的处理
1. 恢复到特定commit版本2. 在no branch分支提交了代码,当前在其他分支上,需要撤回在no branch分支上提交的代码原创 2022-01-24 11:42:13 · 725 阅读 · 0 评论 -
git cherry-pick命令
一、背景 对于多分支的代码库,将代码从一个分支转移到另一个分支是常见需求,这时分两种情况: (1)你需要另一个分支的所有代码变动,就采用合并(git merge); (2)你只需要部分代码变动(某几个提交),这时可以采用git cherry-pick;二、基本用法2.1 命令的格式 格式如下,其中的commitHash在通过git log查看代码提交log时会有显示;$ git cherry-pick <commit...原创 2021-12-11 19:35:51 · 693 阅读 · 0 评论 -
git clone Github上的源码
git clone 、 SVN原创 2021-11-28 17:35:19 · 1477 阅读 · 0 评论 -
git快捷键配置
一、命令方式直接配置git config --global alias.co checkoutgit config --global alias.cm commitgit config --global alias.cam 'commit -a --amend'git config --global alias.csm 'commit -s -m'git config --global alias.br branchgit config --global alias.fo 'fetc原创 2021-10-18 09:57:30 · 2708 阅读 · 0 评论 -
Git常用命令总结
https://www.cnblogs.com/miracle77hp/articles/11163532.htmlhttps://www.cnblogs.com/mengdd/p/4153773.html几个专用名词的译名如下。Workspace:工作区 Index / Stage:暂存区 Repository:仓库区(或本地仓库) Remote:远程仓库本地分支关联远程:git branch --set-upstream-to=origin/beta beta一、新原创 2021-08-05 17:04:45 · 552 阅读 · 0 评论