讓現有的 Git 分支跟蹤遠端分支? - Make an existing Git branch track a remote branch?
問題:
I know how to make a new branch that tracks remote branches, but how do I make an existing branch track a remote branch?我知道如何建立一個跟蹤遠端分支的新分支,但如何使現有分支跟蹤遠端分支?
I know I can just edit the .git/config
file, but it seems there should be an easier way.我知道我可以編輯.git/config
檔案,但似乎應該有更簡單的方法。
解決方案:
參考一: https://stackoom.com/question/2BRa參考二: Make an existing Git branch track a remote branch?
「其他文章」
- 如何解決 git 的“不是我們可以合併的東西”錯誤 - How to resolve git's “not something we can merge” error
- 計算一個月的最後一天 - Calculate last day of month
- 我的Objective-C單身人物應該是什麼樣的? [關閉] - What should my Objective-C singleton look like? [closed]
- 為什麼 SQL Server 中的表名以“dbo”開頭? - Why do table names in SQL Server start with “dbo”?
- 從命令列查看錶格檔案,例如 CSV [關閉] - View tabular file such as CSV from command line [closed]
- 在動作建立者中訪問 Redux 狀態? - Accessing Redux state in an action creator?
- 如何將天數新增到今天的日期? [重複] - How to add number of days to today's date? [duplicate]
- 如何刪除 msysgit 的右鍵選單選項? - How do I remove msysgit's right click menu options?
- 如何在 Python 中獲取當前模組中所有類的列表? - How can I get a list of all classes within current module in Python?
- 如何在 iTerm2 中向上滾動更多(增加滾動緩衝區)? - How can I scroll up more (increase the scroll buffer) in iTerm2?
- 如何從命令列執行 TypeScript 檔案? - How to run TypeScript files from command line?
- 使用 LINQ 連線字串 - Using LINQ to concatenate strings
- 如何將NSMutableArray轉換為NSArray? - How do I convert NSMutableArray to NSArray?
- TypeScript 物件作為 C# 中的字典型別 - TypeScript Objects as Dictionary types as in C#
- 如何按值從陣列中刪除一個元素 - How can I delete one element from an array by value
- Angular 2 在 Route Change 上滾動到頂部 - Angular 2 Scroll to top on Route Change
- 如何匯出 MongoDB 中的所有集合? - How to export all collections in MongoDB?
- 什麼是訊號量? - What is a semaphore?
- 如何在我的 Gemfile 中指定本地 gem? - How can I specify a local gem in my Gemfile?
- 為什麼npm install說我有未滿足的依賴關係? - Why does npm install say I have unmet dependencies?