mysql,Linux,HighPerformance,ruby on Rails

2010年8月9日星期一

git pull config question

I think this very useful for git user, just notice this url

Under [branch "master"], try adding:

[branch "master"]
    remote
= origin
    merge
= refs/heads/master

This tells Git 2 things:

  1. When you're on the master branch, the default remote is origin.
  2. When using git pull on the master branch, with no remote and branch specified, use the default remote (origin) and merge in the changes from the master branch.


ref:
http://stackoverflow.com/questions/658885/how-do-you-get-git-to-always-pull-from-a-specific-branch

没有评论:

发表评论