以前从来没有用过git管理代码,公司其他人用git,没办法,只能使用git了。以下是我个人对git使用的心得吧,有什么不对的地方,还请大家多多提出。
在Mac OS X 下是默认支持git的, 我们所需要做的很简单,就是生成ssh密钥,链接远程仓库。
一.简单配置git
设置SSH
github使用SSH链接,需要设置SSH
1.检查SSH key
...
分类:
系统相关 时间:
2015-04-17 11:31:48
阅读次数:
354
git 作为开源项目首选版本管理软件,必然其优势不容小觑,下面总结一下初次解除用到的一些技能1. 基本命令介绍git help branch 查看branch帮助文档git branch -a 列出当前所有分支git branch good_proj 创建分支good_projgit ...
分类:
其他好文 时间:
2015-04-16 17:17:21
阅读次数:
108
创建分支 git branch 没有参数,显示本地版本库中所有的本地分支名称。 当前检出分支的前面会有星号。 git branch newname 在当前检出分支上新建分支,名叫newname。 git checkout newname 检出分支,即切换到名叫newname的分支。 ...
分类:
其他好文 时间:
2015-04-16 12:21:55
阅读次数:
120
初用 git,很多不懂 ,下面都是常用但是却老是忘记的方法? 一 、?git 获取别人新建并且已经push 在远程库中的分支 ①:首先 如果还没clone 代码库 先从 git clone 项目下来。 进入项目中,可以使用 git branch...
分类:
其他好文 时间:
2015-04-15 19:47:17
阅读次数:
114
1 查看远程分支123456789101112131415$ git branch -a* br-2.1.2.2masterremotes/origin/HEAD -> origin/masterremotes/origin/br-2.1.2.1remotes/origin/br-2.1.2.2re...
分类:
其他好文 时间:
2015-04-15 18:46:44
阅读次数:
106
十五. Git branch 分支 查看当前有哪些branchbixiaopeng@bixiaopengtekiMacBook-Pro xmrobotium$ git branch* master 新建一个branch xm2.xbixiaopeng@bixiaopengtekiMacBook-Pr...
分类:
其他好文 时间:
2015-04-14 12:48:42
阅读次数:
129
分支操作1.查看远程分支前面带*号的代表你当前工作目录所处的分支
$ git branch -a
* br-2.1.2.2
master
remotes/origin/HEAD -> origin/master
remotes/origin/br-2.1.2.1
remotes/origin/br-2.1.2.2
remotes/origin/br-2.1.3
remote...
分类:
其他好文 时间:
2015-04-13 23:04:47
阅读次数:
136
12096 The SetStack Computer
Background from Wikipedia: “Set theory is a branch of mathematics created principally by the German mathe-matician Georg Cantor at the end of the 19th century.Initially co...
分类:
其他好文 时间:
2015-04-12 09:13:00
阅读次数:
144
新建分支 git checkout –b xd 这样就会创建一个名为xd的分支,并自动跳转到该分支(相当于git branch xd回车git checkout dev) 进入分支目录(通过命令行进入分支目录或者先进入分支所在目录然后右键git bash) 判断是否进入分支的标志是能看见目录后面带有...
分类:
其他好文 时间:
2015-04-11 16:19:01
阅读次数:
93
# Pull the repo from mastergit pull# Create branch for myself in localgit branch john/jenkins_code# switch to myself branch of localgit checkout john/...
分类:
其他好文 时间:
2015-04-10 17:24:04
阅读次数:
110