共 4 篇文章 |
|
如果你在命令行环境中运行Git命令,每次都手动地逐个输入命令是一件很无聊的事。然后,添加下面的行到你的~/.bash_profile文件:if [ -f ~/.git-completion.bash ]; then .~/.git-completion.bashfi.你可以通过git show [commit_hash] 查看提交的更改或者通过运行git merge [commit_hash]命令进行恢复。git fsck跟reflog命令相比有一个优点。... 阅52 转0 评0 公众公开 14-11-16 23:44 |
Ant入门教程本内容包含了Ant的历史简要介绍,Ant的功能以及Ant框架的介绍,并对下载安装使用Ant进行了示例介绍,同时通过一个Java程序讲解了Ant的基本使用方法。可以通过指定目标来运行构建: 例如执行完ant后,可以执行ant clean来清理构建: ant等价于ant archive ant init ant clean ant compile ant archive ant clean archive 当构建完... 阅33 转0 评0 公众公开 14-06-24 10:45 |
commit对象是真正直接呈现给git使用者的,它就是我们经常说到的git项目历史记录,我们经常用的git show xxx,git log xxx,git check xxx等命令后面接的数字就是commit对象的名字,也就是commit对象对应的SHA值。commit对象必须有一个tree对象,它本身并不和数据有直接联系,git工具通过它的tree对象找到该commit对应的数据,同时和tree对象一样... 阅2142 转8 评0 公众公开 14-06-19 14:39 |
Git远程操作详解。git clonegit remotegit fetchgit pullgit push.$ git clone http[s]://example.com/path/to/repo.git/$ git clone ssh://example.com/path/to/repo.git/$ git clone git://example.com/path/to/repo.git/$ git clone /opt/git/project.git $ git clone file:///opt/git/project.git$ git clone ftp[s]://example.com/path/to... 阅214 转0 评0 公众公开 14-06-13 17:06 |