我已經寫了一個腳本來確定重定位。不能說不知道哪個分支要重新對齊
當我運行$ my-rebase
,我得到一個錯誤:
You asked me to pull without telling me which branch you want to rebase against, and 'branch.rohan_branch1.merge' in your configuration file does not tell me, either. Please specify which branch you want to use on the command line and try again (e.g. 'git pull '). See git-pull(1) for details.
If you often rebase against the same branch, you may want to use something like the following in your configuration file:
[branch "rohan_branch1"] remote = <nickname> merge = <remote-ref> rebase = true [remote "<nickname>"] url = <url> fetch = <refspec>
我有主分支(工作拷貝),然後我創建rohan_branch1;在某些時候,我似乎在主人身上做了重新設定。
現在我想保持rohan_branch1是最新的。我怎樣才能擺脫這個錯誤?
這將是張貼你的腳本 – CharlesB 2012-07-10 06:22:39
注意了Git 1.8.5將引入一個有用[巧妙的方法來保存對合並'拉--rebase'(HTTP ://stackoverflow.com/a/18756102/6309) – VonC 2013-09-12 05:37:50