我沒有得到關於TFS的Visual Studio的Git的東西。Visual Studio TFS Git沒有看到任何變化
我在TFS的Git上克隆了一個同事的解決方案,並開始添加代碼。然後我意識到我需要我自己的分支機構爲改變我做,所以按照Push a new local branch to a remote Git repo and track it too說明我跑
git checkout -b e4ctim
git push -u origin e4ctim
當我修改我的代碼的Visual Studio顯示了熟悉的紅勾號圖標代碼文件來安慰我說的變化引發了文件簽出:
,然後當我將文件保存在Visual Studio返回圖標藍色掛鎖。我認爲,從紅剔這種變化藍色掛鎖表示該變化Git中得到遏制,局部:
但是,當我看到修改後的文件的歷史記錄,是沒有的!
我想在本地提交我的變化,並與TFS服務器同步他們。
的Visual Studio不會看到任何變化都:
在命令行中我可以看到運行命令
git status
了Git已經注意到了我所有的修改並看到許多未提交和未跟蹤文件的更改。
Looing在Git book我可以用
git add
或者更具體地說
git add -u .
到舞臺準備好提交文件,但我不願意這樣做,因爲Develop your app in a Git repository (track, commit) Visual Studio文檔指出:
Q: Where is the Git stage?
A: If you are an experienced Git user, you might have noticed that Visual Studio handles changes differently than the command prompt. You might have wondered if the Included Changes section contains your staged changes. In fact, Visual Studio usually bypasses the Git stage for you. When you commit changes, Visual Studio simultaneously stages and commits them. The one exception occurs when you add a file to your Git repository; Visual Studio does stage this kind of change.
Visual Studio的階段和提交同時發生變化。但是爲什麼它沒有列出我爲修改跟蹤文件所做的任何修改,從而讓我提交它們呢?
請注意,我故意沒有標記這個'git',因爲它似乎是TFS和Visual Studio的Git工作流特有的。 – dumbledad 2015-02-11 12:47:05
文件是否位於團隊資源管理器 - 更改/未記錄文件下? – 2015-07-08 17:28:08
在Visual Studio「15」預覽中,它現在確實使用了git的階段。 – 2016-04-18 03:42:48