Git
hulefei29
我就是我
展开
-
git 学习笔记
1.通过github创建一个git+下载到本地+通过命令行进入git目录 2.git help <command> 【显示用户手册命令描述】 3.git add <filename>【把该文件添加到版本库的索引】 4.git commit -m "描述信息" 【创建一个提交记录】 5.git push 【提交给服务器】 6.git status 【显示工...原创 2013-05-08 22:37:40 · 61 阅读 · 0 评论 -
git-rebase用法总结
git rebase,顾名思义,就是重新定义(re)起点(base)的作用,即重新定义分支的版本库状态。要搞清楚这个东西,要先看看版本库状态切换的两种情况: 我们知道,在某个分支上,我们可以通过git reset,实现将当前分支切换到本分支以前的任何一个版本状态,即所谓的“回溯”。即实现了本分支的“后悔药”。也即版本控制系统的初衷。 还有另一种情况,当我们的项目有多个分支的时候。我们除了在...原创 2013-11-26 15:49:51 · 80 阅读 · 0 评论 -
Pull Request的正确打开方式(如何在GitHub上贡献开源项目)
GitHub的官方帮助如下: Fork A Repo: https://help.github.com/articles/fork-a-repo Using Pull Requests: https://help.github.com/articles/using-pull-requests Merging a pull request: https://help.github...原创 2013-11-26 16:10:07 · 66 阅读 · 0 评论 -
Git常用命令解说
转载自:http://zensheno.blog.51cto.com/2712776/490748 1. Git概念 1.1. Git库中由三部分组成 Git 仓库就是那个.git 目录,其中存放的是我们所提交的文档索引内容,Git 可基于文档索引内容对其所管理的文档进行内容追踪,从而实现文档的版本控制。.git目录位于工作目录内。 1) 工作目录:用户本地的目录; 2) In...原创 2013-02-19 23:03:16 · 99 阅读 · 0 评论 -
A successful Git branching model
In this post I present the development model that I’ve introduced for all of my projects (both at work and private) about a year ago, and which has turned out to be very successful. I’ve been meaning...原创 2014-08-21 11:14:41 · 97 阅读 · 0 评论 -
git checkout remote branch
if you would like to checkout the branch groups, you can simply say this in recent versions of Git: git fetch origin git checkout groups This will automatically track origin/groups from a local...原创 2016-03-29 20:12:41 · 725 阅读 · 0 评论