码迷,mamicode.com
首页 >  
搜索关键字:git笔记    ( 94个结果
git笔记
Git常用命令查看、添加、提交、删除、找回,重置修改文件git help # 显示command的helpgit show # 显示某次提交的内容 git show $idgit co -- # 抛弃工作区修改git co . # 抛弃工作区修改git add # 将工作文件修改提交到本地暂存...
分类:其他好文   时间:2015-07-02 11:55:19    阅读次数:151
Git笔记
Git入门 git add是提交到暂存区域 git commit是提交到本地git目录 -a 跳过add到暂存域 git commit –amend 修复上一次提交 git push 是提交到远程目录 git log查看提交历史 -p显示每次提交的内容差异 -2最近两次提交 – stat显示摘要,如次数 –pretty=format:”%h -%an, %ar %s” –graph git mv...
分类:其他好文   时间:2015-06-27 16:26:47    阅读次数:122
【Git笔记】git报错 fatal: The remote end hung up unexpectedly
git提交报异常,fatal: The remote end hung up unexpectedly上网找了一下原因,最后这个答案帮了我解决问题了。1 git config http.postBuffer 524288000我的问题估计是上传文件太大导致的。参考原文:http://www.myex...
分类:其他好文   时间:2015-06-26 12:42:11    阅读次数:298
git笔记
git 在fetch时侯报错: fatal: git-write-tree: error building trees 解决办法: Use: git reset--mixed instead of?git reset --hard. You will not lose any changes. clone代码 git clone http://sunhuairu...
分类:其他好文   时间:2015-06-18 20:23:05    阅读次数:123
Git 的基本使用
学习Git笔记经过这段时间的学习,对Git有了一个初步的认识,也明白了它与SVN的区别,相对于SVN来说,Git真的很酷。以下用命令来记录它的使用特性:// 添加或修改git add file_namegit commit -m 'comment' file_name// 删除git rm f...
分类:其他好文   时间:2015-06-05 13:42:05    阅读次数:79
Git 笔记
1.Git自动补全假使你使用命令行工具运行Git命令,那么每次手动输入各种命令是一件很令人厌烦的事情。为了解决这个问题,你可以启用Git的自动补全功能,完成这项工作仅需要几分钟。为了得到这个脚本,在Unix系统下运行以下命令:?12cd~curlhttps://raw.github.com/git/...
分类:其他好文   时间:2015-06-05 00:39:35    阅读次数:104
Git 笔记
为什么Git比其他版本控制系统设计得优秀,因为Git跟踪并管理的是修改,而非文件。---------------------------------------------------------------添加忽略的文件git update-index --assume-unchaged dir取...
分类:其他好文   时间:2015-05-26 01:34:53    阅读次数:201
《Pro Git》笔记3:分支基本操作
《Pro Git》笔记3:Git分支基本操作分支使多线开发和合并非常容易。Git的分支就是一个指向提交对象的可变指针,极其轻量。Git的默认分支为master。1.Git数据存储结构和分支git提交时会将暂存文件的内容,暂存的目录结构,提交对象,含附注标签对象都以包含信息头的二进制文件形式存储到版本...
分类:其他好文   时间:2015-05-26 01:30:02    阅读次数:308
Git 笔记 - git diff and git commit
To see what you’ve changed but not yet staged, typegit diffwith no other argumentsThat command compares what is in your working directory with what is...
分类:其他好文   时间:2015-05-24 18:49:49    阅读次数:131
Git 笔记 - .gitignore
The rules for the patterns you can put in the.gitignorefile are as follows:Blank lines or lines starting with#are ignored.Standard glob patterns work....
分类:其他好文   时间:2015-05-24 18:39:12    阅读次数:182
94条   上一页 1 ... 5 6 7 8 9 10 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!