8,807
edits
(→Commiting changes: Updated to be more clear and concise; note that all these steps apply to Linux too) |
m (Rightclick > Git Bash, isn't available any more.) |
||
Line 20: | Line 20: | ||
==== Method 1: ==== | ==== Method 1: ==== | ||
[[File:msysgit_clone_fgdata.jpg|thumb|270px|The Git Bash window]] | |||
Open Git Bash via <tt>C:/Program Files/msysgit/Git Bash</tt> (the shortcut) and run (replacing the path with your prefered path): | |||
cd D:/FlightGear/data | |||
Then run the following, to initialise a Git repository. This should create a .git directory in data/. | |||
git init | |||
Add the following command and press Enter. | |||
git clone git://mapserver.flightgear.org/fgdata/ | git clone git://mapserver.flightgear.org/fgdata/ | ||
Now msysGit will pull the entire fgdata package into your <tt>FlightGear/data</tt> directory. '''This can take up to a couple of hours on slow internet connections!''' | Now msysGit will pull the entire fgdata package into your <tt>FlightGear/data</tt> directory. '''This can take up to a couple of hours on slow internet connections!''' | ||
'''IMPORTANT:''' Be sure you use msysGit 1.7.0.2 or newer version, as previous versions have problems with large repositories, and won't download more than 2Gb of data. | '''IMPORTANT:''' Be sure you use msysGit 1.7.0.2 or newer version, as previous versions have problems with large repositories, and won't download more than 2Gb of data. | ||
'''IMPORTANT II:''' Some files demand that CR/LF (carriage return / line feed) line breaks are kept in the way they are stored on Gitorious. Make sure to set "git-config core.safecrlf true" and "git-config core.autocrlf false" in your options or you may receive nasty error or even a crash on startup of FG (e.g. fgtzfile_read(): : Invalid argument... Fatal error: Timezone reading failed). | '''IMPORTANT II:''' Some files demand that CR/LF (carriage return / line feed) line breaks are kept in the way they are stored on Gitorious. Make sure to set "git-config core.safecrlf true" and "git-config core.autocrlf false" in your options or you may receive nasty error or even a crash on startup of FG (e.g. fgtzfile_read(): : Invalid argument... Fatal error: Timezone reading failed). | ||
==== Method 2: ==== | ==== Method 2: ==== |