最近在整理較大系統的 git 目錄結構, 要把整個git untracker 的檔案分開, 所以要指定一些VC產生出來的目錄, 整理到 ipch 時很抓狂, 它就一直黏著.sln 檔放
ipch目錄據說是Visual Studio 2010 IntelliSense 開始拿來放一些precompiled的東西,最賭爛的是,它不是放Compiler 的precompiled 的東西, 所以找很久都朝C++ compiler 的precompiler 的方向找, 拜了幾次Goolge大神才找到, 其實主要是IntelliSense自己的暫存檔, 但這個設定確不是sln 可以設定的, 所以不能夠過設定.sln 來讓所有人都可以用, 得每台電腦都得設定
到這裡來
Tools > Options > Text Editor > C/C++ > Advanced ->Fallback Location
將Always Use Fallback Location設為 True
預設存放的目錄為 C:\users\AppData\Local\Temp\
你也可以透過 Fallback Location 來設定, 例如直接設到 %TEMP% 去眼不見為淨
參考連結
http://blog.bfitz.us/?p=1315
http://stackoverflow.com/questions/4315681/how-to-change-ipch-path-in-visual-studio-2010
http://blogs.msdn.com/b/vcblog/archive/2010/03/09/intellisense-browsing-options-in-vc-2010.aspx
Showing posts with label Git. Show all posts
Showing posts with label Git. Show all posts
Tuesday, March 18, 2014
Thursday, February 20, 2014
git submodule update 後, 不會自動對到master branch 的解法
git submodule update 後, 每次都在要commit 時被提醒沒有設branch, 這很怪, 查了一下才注意到root 在記錄submodule 的狀態只記錄最後commit 的hash id, 並沒有記錄是那個branch 的, 所以當你submodule update 會將hash id update後, branch 就拖勾了.
不過在git 1.8.1 之後加入了可以設定submodule 的branch 了, 使用方式是在加入submodule 時下-b 的參數
git submodule add -b master [URL to Git repo];
這樣當我們 submodule update 時就會自動將branch 設為master , 這樣也比較像svn 的external link 的方式, 可以設定某個root 的git 使用某個submodule 的branch
不過如果現有的submodule 要加入呢?
這時只要回到parent 的git 目錄去設定就可以了
參考連結:
ref1: integrate with the tip of the remote branch
ref2: if you have an existing submodule which isn't tracking a branch yet
不過在git 1.8.1 之後加入了可以設定submodule 的branch 了, 使用方式是在加入submodule 時下-b 的參數
git submodule add -b master [URL to Git repo];
這樣當我們 submodule update 時就會自動將branch 設為master , 這樣也比較像svn 的external link 的方式, 可以設定某個root 的git 使用某個submodule 的branch
不過如果現有的submodule 要加入呢?
這時只要回到parent 的git 目錄去設定就可以了
git config -f .gitmodules submodule..branch
參考連結:
ref1: integrate with the tip of the remote branch
ref2: if you have an existing submodule which isn't tracking a branch yet
Subscribe to:
Posts (Atom)