FlightGear Git on Windows: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 4: Line 4:
== Different needs ==
== Different needs ==
There are two kinds of people who would install Git - those who intend doing development, and those who just want to have the latest and greatest version. The big difference is the amount of data that needs to be downloaded. Another important factor is your Internet connection speed and the amount of bandwidth you have. This affects the way in which you do your downloading.  
There are two kinds of people who would install Git - those who intend doing development, and those who just want to have the latest and greatest version. The big difference is the amount of data that needs to be downloaded. Another important factor is your Internet connection speed and the amount of bandwidth you have. This affects the way in which you do your downloading.  
Developers need the entire history of Flightgear so that they can push changes, cutting-edge users just need the latest version of each file.


The various sub-headings will show whether they are intended for developers, users or all.
The various sub-headings will show whether they are intended for developers, users or all.
Line 9: Line 11:




== A first Git install (All) ==
== Pre-installation work (All) ==
=== Pre-installation work ===
We need to choose an installation directory which is different to the one where your release copy is installed. The folders you create must be empty. This can be any drive on your computer. In this document, we assume that you install FlightGear on the D:/ drive. Just replace the commands given in this document by your installation directory when using another drive or different directory root.
Before we start, we will choose an installation directory (preferably different to the one where your release copy is installed.) This can be any drive on your computer. In this document, we assume that you install FlightGear on the D:/ drive. Just replace the commands given in this document by your installation directory when using another drive or different directory root.


Create the following directories on your drive:
Create the following directories on your drive:
Line 19: Line 20:
*** <tt>win32/</tt>
*** <tt>win32/</tt>
** <tt>data/</tt>
** <tt>data/</tt>
== A first Git install (Develop) ==


=== Obtaining data from Git ===
=== Obtaining data from Git ===
Line 24: Line 29:
You can use any Git software, however we advise to use msysGit (which will be used in this document). You can download it through [http://code.google.com/p/msysgit/downloads/list this link]. Select the one with the Summary that says "Full installer for official Git for Windows." The file name will be similar to this: Git-x.x.x-previewyyyyddmm.exe. x.x.x s the version number. Choose the highest (newest) one. Follow the download/installation instructions that show up on your screen.
You can use any Git software, however we advise to use msysGit (which will be used in this document). You can download it through [http://code.google.com/p/msysgit/downloads/list this link]. Select the one with the Summary that says "Full installer for official Git for Windows." The file name will be similar to this: Git-x.x.x-previewyyyyddmm.exe. x.x.x s the version number. Choose the highest (newest) one. Follow the download/installation instructions that show up on your screen.


If you have a slow internet connection or you cannot keep your computer on for the long time that it takes for the data to download from the git server, follow Method 2.
The amount of data to download is currently 5GB (and will grow over the years) so, if you have a slow internet connection or limited bandwidth per month or you cannot keep your computer on for the long time that it takes for the data to download from the git server, follow Method 2.


==== Method 1: ====
==== Method 1: ====
Line 30: Line 35:


[[File:msysgit_clone_fgdata.jpg|thumb|270px|The Git Bash window]]
[[File:msysgit_clone_fgdata.jpg|thumb|270px|The Git Bash window]]
Open Git Bash via <tt>C:/Program Files/msysgit/Git Bash</tt> (or open via the shortcut) and run (replacing the path with your prefered path):
Open Git Bash via <tt>C:/Program Files/msysgit/Git Bash</tt> (or open via the shortcut) and run (replacing the path with your preferred path):
  cd D:/FlightGear/data
  cd D:/FlightGear/data


Line 36: Line 41:
  cd "D:/FlightGear/data"
  cd "D:/FlightGear/data"


(replace the above addresses with wherever your fg/data folder should be -make sure the file doesn't exist, though!)
or, in some cases:
cd d:
cd flightgear/data
 
(replace the above paths with wherever your fg/data folder should be -make sure the file doesn't exist, though!)


Then run the following, to initialise a Git repository. This should create a .git directory in data/.
Then run the following, to initialise a Git repository. This should create a .git folder in data/. (It will probably be a hidden folder.)
  git init
  git init


Line 52: Line 61:


==== Method 2: ====
==== Method 2: ====
Download the <tt>fgdata.bundle</tt> from http://peter-server.homelinux.net/fgdata/fgdata/
Download the <tt>fgdata.bundle</tt> from or http://flightgear.mxchange.org/pub/fgfs/. Use <tt>Right mouseclick > Save target as</tt> on the file, if you end up with a webpage full of weird characters.
or http://flightgear.mxchange.org/pub/fgfs/. Use <tt>Right mouseclick > Save target as</tt> on the file, if you end up with a webpage full of weird characters.


After downloading, download the MD5 checksum, fgdata.bundle.md5, from the same site.
After downloading, download the MD5 checksum, fgdata.bundle.md5, from the same site.
224

edits

Navigation menu