使用repo sync时,如果当前仓库有检出本地分支,假设为dev, 对应的远程track分支为origin/dev。 而manifest.xml中指定的track分支为origin/master,那么在repo sync时会自动将当前的dev分支的远程track分支修改为origin/master, 不仅如此,同时还会将origin/master上的修改rebase到本地的这个dev分支上。

[轉]repo sync 时自动切换当前分支的remote track分支的问题

使用repo sync时,如果当前仓库有检出本地分支,假设为dev, 对应的远程track分支为origin/dev。 而manifest.xml中指定的track分支为origin/master,那么在repo sync时会自动将当前的dev分支的远程track分支修改为origin/master, 不仅如此,同时还会将origin/master上的修改rebase到本地的这个dev分支上。

[plain] view plain copy
 
  1. projectA/: manifest switched refs/heads/dev...master  
  2. project projectA/  
  3. First, rewinding head to replay your work on top of it...  
  4. Applying: y  
文章標籤
全站熱搜
創作者介紹
創作者 丘猴子 的頭像
丘猴子

轉貼部落格

丘猴子 發表在 痞客邦 留言(0) 人氣(50)