在github fork的项目中推送与抓取
摘要:github -- fork提交项目:自己的仓库和原仓库进行Git同步的操作。 1. 获取你fork的原仓库的更新过的最新代码;如果没有远程原始分支则需要增加。 git remote add upstream git@github.com:ParrotsDL/parrots.gitgit fetch
阅读全文
posted @
2016-03-28 23:24
fuleying
阅读(618)
推荐(0)
Git 自动补全
摘要:如果你用的是 Bash shell,可以试试看 Git 提供的自动补全脚本。 http://git-scm.com/download 下载 Git 的源代码,进入contrib/completion 目录,会看到一个 git-completion.bash 文件。 将此文件复制到你自己的用户主目录中
阅读全文
posted @
2016-03-28 23:23
fuleying
阅读(300)
推荐(0)
Shell颜色及显示git分支配置
摘要:# Ubuntu终端下命令行颜色配置 ## Parses out the branch name from .git/HEAD: find_git_branch () { local dir=. head until [ "$dir" -ef / ]; do if [ -f "$dir/.git/H
阅读全文
posted @
2016-03-28 23:23
fuleying
阅读(1005)
推荐(0)
Git config配置
摘要:git获取帮助git help config git config --help man git-config git config --global user.name "fuleying"git config --global user.email "fuleying@gmail.com" gi
阅读全文
posted @
2016-03-28 23:22
fuleying
阅读(557)
推荐(0)
Git入门指南
摘要:git学习资源: Pro Git(中文版) Learn Git in your browser for free with Try Git. Git常用命令 Reference 常用 Git 命令清单 star 的作用是收藏,目的是方便以后查找。 watch 的作用是关注,目的是等作者更新的时候,你
阅读全文
posted @
2016-03-28 23:20
fuleying
阅读(354)
推荐(0)
Git常用命令
摘要:常用 Git 命令清单 Git 常用命令详解(二) Git 常用命令速查表(三)git clone 收取项目历史的所有数据(每一个文件的每一个版本),凡是服务器上有的数据,克隆之后本地也都有了。其中包含一个.git的目录,用于保存下载下来的所有版本记录。然后从中取出项目最新版本的所有文件拷贝放在与
阅读全文
posted @
2016-03-27 16:24
fuleying
阅读(500)
推荐(0)