1.Git自动补全假使你使用命令行工具运行Git命令,那么每次手动输入各种命令是一件很令人厌烦的事情。为了解决这个问题,你可以启用Git的自动补全功能,完成这项工作仅需要几分钟。为了得到这个脚本,在Unix系统下运行以下命令:?12cd~curlhttps://raw.github.com/git/...
分类:
其他好文 时间:
2015-06-05 00:39:35
阅读次数:
104
?git remote add origin git@github.com:myaccount/myproject.git ?git push -u origin master?git init--------建立repository?git 命令 --help-----------查看帮助命令?t...
分类:
其他好文 时间:
2015-06-02 19:41:52
阅读次数:
94
Q: http://stackoverflow.com/questions/7994663/git-push-via-cronI'm trying to run a git push from cron. When I do the command interactively on the shel...
分类:
其他好文 时间:
2015-06-02 11:09:22
阅读次数:
155
Git是一个很强大的分布式版本控制系统。它不但适用于管理大型开源软件的源代码,管理私人的文档和源代码也有很多优势。 本来想着只把最有用、最常用的 Git 命令记下来,但是总觉得这个也挺有用、那个也用得着,结果越记越多。
分类:
其他好文 时间:
2015-06-02 10:44:04
阅读次数:
114
在linux下搭建git环境1、创建Github账号,https://github.com2、Linux创建SSH密钥:[plain]view plaincopyssh-keygen##一直默认就可以了3、将公钥加入到Github账户信息Account Settings->SSH Key4、测试验证...
分类:
系统相关 时间:
2015-06-02 10:38:30
阅读次数:
141
这问题够隐蔽,折腾了近两个小时。命令 git checkout tagname 手工执行都正常但在crontab运行时发现分支一直切不过去。后来告诉是crontab默认的 path 设置和系统自身的有区别git 命令放在/usr/local/bin/ 目录而crontab 却在 /sbin:/bin...
分类:
其他好文 时间:
2015-06-01 11:28:38
阅读次数:
106
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change执行 sudo xcode-select -swi...
分类:
其他好文 时间:
2015-05-31 20:04:28
阅读次数:
120
1分支问题我在网上的托管环境(github)新建项目的时候有生成readme文件.在本地初始化项目添加git作为项目管理时,填写远程地址一定要以https形式,然后发布会出错,提示在git命令行好像显示的是There is no tracking information for the curren...
分类:
其他好文 时间:
2015-05-31 01:22:08
阅读次数:
129
git branch 查看分支git branch -r 查看远程分支git fetch -p 清除被其他人删除的远程分支git checkout master 切换到master分支git pull origin master 更新master分支到本地git checkout daily/0.....
分类:
其他好文 时间:
2015-05-30 17:59:26
阅读次数:
109
git clone https://github.com/vhreal/仓库名
git add *
git add
git commit -m "修改代码描述"
git push origin master(分支名字)
http://www.xbc.me/git-commands/
http://www.cnblogs.com/lee0oo0/archive/2013...
分类:
其他好文 时间:
2015-05-29 10:09:53
阅读次数:
155