Difference between revisions of "Git Windows"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Add page to Category:Windows)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''This page documents how to use [[Git]] from Windows.'''
 
 
 
== Install MSysGit ==
 
== Install MSysGit ==
Take latest on http://code.google.com/p/msysgit/downloads/list .
+
Take latest on https://github.com/msysgit/msysgit/releases/
  
 
And follow installation. It should be straightforward.
 
And follow installation. It should be straightforward.
  
 
== Install TortoiseGit ==
 
== Install TortoiseGit ==
Take latest 32bits version on http://code.google.com/p/tortoisegit/downloads/list .
+
Take the [http://download.tortoisegit.org/tgit/ latest 32-bit version] - currently http://download.tortoisegit.org/tgit/1.8.9.0/TortoiseGit-1.8.9.0-32bit.msi
  
 
Start and follow installation until success.
 
Start and follow installation until success.
Line 19: Line 17:
 
Right click, select ''Git Clone'' and enter one of the VideoLAN project.
 
Right click, select ''Git Clone'' and enter one of the VideoLAN project.
  
In the URL text box fill in the following: "git://git.videolan.org/x264.git"
+
In the URL text box fill in the following: "http://git.videolan.org/git/x264.git"
  
 
Accept and wait.
 
Accept and wait.
  
==== When you receive an error that git cannot connect to the server: ====
+
For more information including access using http only, see the [[Git]] page.
 
 
In contrary to what the [http://git.videolan.org git.videolan.org] site suggests, using http for git checkouts is NOT supported. If you happen to be behind a restrictive firewall that blocks the git port 9418: Well, sorry, game over for what git concerns.
 
  
 
== Cygwin git issue ==
 
== Cygwin git issue ==
Line 68: Line 64:
 
If you have installed Cygwin in the standard location then type this:
 
If you have installed Cygwin in the standard location then type this:
  
C:\ffmpeg-SVN\>c:\cygwin\bin\git clone git://git.videolan.org/x264.git
+
C:\ffmpeg-SVN\>c:\cygwin\bin\git clone http://git.videolan.org/vlc/x264.git
  
 
Initialized empty Git repository in /cygdrive/c/ffmpeg-SVN/x264/.git/<br>
 
Initialized empty Git repository in /cygdrive/c/ffmpeg-SVN/x264/.git/<br>
Line 84: Line 80:
  
 
---
 
---
 +
 +
 +
[[Category:Building]]
 +
[[Category:Windows]]

Latest revision as of 07:58, 23 January 2019

Install MSysGit

Take latest on https://github.com/msysgit/msysgit/releases/

And follow installation. It should be straightforward.

Install TortoiseGit

Take the latest 32-bit version - currently http://download.tortoisegit.org/tgit/1.8.9.0/TortoiseGit-1.8.9.0-32bit.msi

Start and follow installation until success. You may need to point where MSysGit is after installation (point it to the bin/ folder).

Checkout a project

Open explorer, create a folder named VideoLAN.

Enter it.

Right click, select Git Clone and enter one of the VideoLAN project.

In the URL text box fill in the following: "http://git.videolan.org/git/x264.git"

Accept and wait.

For more information including access using http only, see the Git page.

Cygwin git issue

Note for Windows users using Cygwin (linux-like build environment):

Applies to:

Windows XP Service Pack 2 with Security Update KB925902 installed
Windows XP Service Pack 3

There is a problem on Windows XP (and possibly on other Microsoft Operating Systems) with 'git clone' which aborts unexpectedly with a Cygwin error during the 'checking out files' (reproducable every time and at the same percentage) at the end of the clone procedure:

$ 2 [main] git 4012 D:\cygwin\bin\git.exe:
  *** fatal error - could not load shell32, Win32 error 487

This has been verified (May 22, 2008) against the currently available Cygwin 1.5.25-12 with git package versions 1.5.5.1-1 and 1.5.4-1 and is a generic problem which also affects cloning from other git repositories (although x264.git seems unaffected).

The issue is referred to in the mail archives of the Cygwin project mailing list here Git error on Cygwin.

By eliminating the impossible, whatever remained, however improbable, it is the following Windows Security Update (April 3, 2007) which is actually the cause of the Cygwin issue: Microsoft Security Bulletin MS07-017 - Vulnerabilities in GDI Could Allow Remote Code Execution (925902)

Even though the same Security Update applies to the following systems, these are reported not to be affected:

Windows Vista Service Pack 1
Windows 2003 Server Standard Service Pack 2

It is possible to get 'git clone' working again on the affected systems by removing the Security Update (KB925902) but this is obviously not recommended for security reasons.

---

To use git with Cygwin (for WinXP) do this:

[Start][Run] and type "cmd".


Change to the directory where you desire to download x264 to:

cd c:\ffmpeg-SVN\


If you have installed Cygwin in the standard location then type this:

C:\ffmpeg-SVN\>c:\cygwin\bin\git clone http://git.videolan.org/vlc/x264.git

Initialized empty Git repository in /cygdrive/c/ffmpeg-SVN/x264/.git/
remote: Generating pack...
remote: Done counting 6710 objects.
remote: Deltifying 6710 objects...
remote: 100% (6710/6710) done
remote: Total 6710 (delta 5345), reused 156 (delta 123) :
Receiving objects: 100% (6710/6710), 1.63 MiB | 25 KiB/s, done.
Resolving deltas: 100% (5345/5345), done.


You can use Cygwin's git under the DOS shell but if you try the same command under the Cygwin (Bash) shell you get an error message.

---