01. GIT简介git是一款开源的分布式版本控制工具在世界上所有的分布式版本控制工具中,git是最快、最简单、最流行的git的起源作者是Linux之父:Linus Benedict Torvalds当初开发git仅仅是为了辅助Linux内核的开发(管理源代码)git的现状在国外已经非常普及,国内并...
分类:
移动开发 时间:
2015-08-15 00:00:19
阅读次数:
428
hist -- alias for 'log --color --graph --date=short --pretty=format:'%Cred%h%Creset -%C(yellow)%d%C reset %s %Cgreen(%cr) %C(bold blue)%Creset' --ab.....
分类:
其他好文 时间:
2015-08-14 19:00:49
阅读次数:
117
Make an existing Git branch track a remote branch?Given a branchfooand a remoteupstream:As of Git 1.8.0:git branch -u upstream/fooOr, if local branchf...
分类:
其他好文 时间:
2015-08-14 18:59:34
阅读次数:
525
C++笔记开始为了好好研究下C++14,顺便复习下以前的C++知识。搞了个git(不断完善中):
https://github.com/rododo/cpp14examples.git
里面会慢慢封装一些常用的函数,并做一些测试验证,工程是建立在Ubuntu的Eclipse之上,见系列(1)环境搭建。常用的时间函数参考:
http://blog.chinaunix.net/uid-245178...
分类:
编程语言 时间:
2015-08-14 17:07:09
阅读次数:
150
1,push时报错 : [rejected] master -> master (non-fast-forward) 解决方法:增加-f,强制 2,commit时,增加-a3,删除git中的文件 项目的控制文件,一般是不上传的,例如的.idea目录,有时候会...
分类:
其他好文 时间:
2015-08-14 15:15:08
阅读次数:
99
git rm -r -f --cached 文件或文件夹git commit -m "移除文件或文件夹"git push origin master注意:要删除的文件或文件夹已处于git版本控制内。
分类:
其他好文 时间:
2015-08-14 13:36:12
阅读次数:
134
转自:http://www.cnblogs.com/highriver/archive/2012/01/05/2313808.htmlzz: http://blog.csdn.net/herbert5069/article/details/6859563$Git stash 可用来暂存当前正在进行的...
分类:
其他好文 时间:
2015-08-14 13:24:10
阅读次数:
144
参考文章:http://www.ruanyifeng.com/blog/2014/06/git_remote.htmlgit基础操作 http://www.ruanyifeng.com/blog/2012/07/git.html git分支管理 http://mp.weixin....
分类:
其他好文 时间:
2015-08-14 13:22:45
阅读次数:
129
一、追踪分支1.追踪分支在Git中‘追踪分支’是用于联系本地分支和远程分支的. 如果你在’追踪分支'(Tracking Branches)上执行推送(push)或拉取(pull)时,它会自动推送(push)或拉取(pull)到关联的远程分支上. 如果你经常要从远程仓库里拉取(pull)分支到本地,并...
分类:
编程语言 时间:
2015-08-14 13:03:41
阅读次数:
105
Git常用命令1、添加文件 git add xxx2、提交更新到本地 git commit -m 'local-repo'3、提交更新 git push master4、列出分支 git branch5、检索分支代码 git checkout xxx6、拉取分支更新 git pull x...
分类:
其他好文 时间:
2015-08-14 11:36:17
阅读次数:
137