
Version Control
likaiwalkman_Victor
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git的介绍与使用
最近在学习一些开源技术,顺带想起了之前曾经别人推荐的git。作为一个程序员,肯定也都会很想要有一个自己的服务器,然后将一些重要数据备份在服务器中。如果是需要和朋友共同开发,那服务器更是不可或缺。但是你懂得,我等屌丝,木有钱购买自己的服务器,也不愿意去买一个服务器,嘿嘿,不是有开源的git么?正合我意,好吧,顺带日志也是需要记录的。版本控制本地 为了让某个文件能够恢复到之前的转载 2015-02-01 00:00:02 · 489 阅读 · 0 评论 -
Track all remote git branches as local branches
Using bash:for remote in `git branch -r `; do git branch --track $remote; doneUpdate the branches, assuming there are no changes on your local tracking branches:for remote in `git branch -r `原创 2017-01-18 10:18:59 · 365 阅读 · 0 评论 -
git clean
As per the Git Documentation git cleanRemove untracked files from the working treeStep 1 is to show what will be deleted by using the -n option:git clean -nClean Step - beware: th转载 2017-01-18 10:18:27 · 459 阅读 · 0 评论 -
git 恢复单个文件的历史版本
首先查看该文件的历史版本信息:git log Default@2x.png记录下需要恢复的commit版本号:如 9aa51d89799716aa68cff3f30c26f8815408e926恢复该文件:git reset 9aa51d89799716aa68cff3f30c26f8815408e926 Default@2x.png提交git:git commit -m转载 2016-12-08 17:24:38 · 676 阅读 · 0 评论 -
git多账户有时出现需要输入密码解决方法
ssh-add ~/.ssh/id_rsa原创 2016-11-28 10:41:11 · 316 阅读 · 0 评论 -
code review基础方案
code review基础方案转至元数据结尾转至元数据起始1.pre-commit-review 采用feature分支及merge-request的方式进行code review 使用流程: 1》开发人员创建自己的feature分支进行开发,所有code提交到自己的feature分支上;转载 2016-12-04 16:29:31 · 585 阅读 · 0 评论 -
Setting up a git remote origin
git remote add --track master origin user@somesite.com:group/project.git # gitgit remote add --track master origin user@172.16.1.100:group/project.git # git w/IPgit remote add --track master ori原创 2016-11-21 11:55:51 · 419 阅读 · 0 评论 -
git撤销最新的一次提交
执行:git reset --hard HEAD~1原创 2016-11-30 10:53:34 · 3517 阅读 · 0 评论 -
Git 常用命令
常用命令:1. git reflog查看命令历史,以便确定要回到未来的哪个版本2. git log可以查看提交历史,以便确定要回退到哪个版本3. git reset --hard commit_id, 允许我们在版本的历史之间穿梭4. 分支相关命令查看分支:gitbranch创建分支:gitbranch name切换分支:gitcheckout name创建+切换分原创 2014-12-16 10:36:59 · 472 阅读 · 0 评论 -
Git中查看某个文件基于时间改动的具体详情
git log -p file_path原创 2017-02-10 10:26:39 · 4824 阅读 · 0 评论