我們正在與一些擁有Mac的人一起開展一個項目。.gitattributes文件應該在提交中嗎?
我自己在windows上運行。 我們遇到了換行問題。
我上,我可以添加此github上寫着:
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto
# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
到.gitattributes
但我應該提交這個文件到GitHub上讓其他人使用Mac得到相同的設置?
請大家幫幫我:○
如果不管我們正在編碼的網站的。 (PHP,JS文件和東西)。
備案,我是唯一一個Windows ..所以是的,我能做什麼?
是的,我知道。但我已閱讀文檔,但無法弄清楚該文件是否應該是git服務器或不是。 – Muqito 2013-02-26 13:58:12
你是指_literally_在git服務器上或「簽入」? – 2013-02-26 14:00:01
我對Git不太瞭解,因爲我剛剛發現它。但是當我嘗試做出提交時,它會要求我將文件上傳到服務器,然後我確實解決了這個問題:O 那麼我該怎麼做? xD我是否回答自己的問題或什麼? – Muqito 2013-02-26 22:36:52