You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/install-inside-msys2-proper.md
+30-16Lines changed: 30 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,47 +16,61 @@ Here are the steps to install the 64-bit version of Git for Windows to be run in
16
16
17
17
1. Edit `/etc/pacman.conf` and add the Git for Windows package repositories above any others (i.e. just before `[mingw32]` on line #71 as of this writing):
18
18
19
-
[git-for-windows]
20
-
Server = https://wingit.blob.core.windows.net/x86-64
19
+
```
20
+
[git-for-windows]
21
+
Server = https://wingit.blob.core.windows.net/x86-64
21
22
22
-
[git-for-windows-mingw32]
23
-
Server = https://wingit.blob.core.windows.net/i686
23
+
[git-for-windows-mingw32]
24
+
Server = https://wingit.blob.core.windows.net/i686
25
+
```
24
26
25
27
(The above is correct. The second, MINGW-only repository is for the other architecture.)
26
28
27
29
This step can be done with the following `sed` command (make sure to do proper backup before trying it):
28
30
29
-
sed -i '/^\[mingw32\]/{ s|^|[git-for-windows]\nServer = https://wingit.blob.core.windows.net/x86-64\n\n[git-for-windows-mingw32]\nServer = https://wingit.blob.core.windows.net/i686\n\n|; }' /etc/pacman.conf
31
+
```
32
+
sed -i '/^\[mingw32\]/{ s|^|[git-for-windows]\nServer = https://wingit.blob.core.windows.net/x86-64\n\n[git-for-windows-mingw32]\nServer = https://wingit.blob.core.windows.net/i686\n\n|; }' /etc/pacman.conf
33
+
```
30
34
31
35
To avoid the future signature related issues, run the following commands first
This installs a new `msys2-runtime` and therefore will ask you to terminate all MSYS2 processes. Save what you need from other open MSYS2 shells and programs, exit them and confirm the Pacman prompt.
58
+
This installs a new `msys2-runtime` and therefore will ask you to terminate all MSYS2 processes. Save what you need from other open MSYS2 shells and programs, exit them and confirm the Pacman prompt.
49
59
Double-check Task Manager and kill `pacman.exe` if it's still running after the window is closed. Start a new MSYS2 terminal.
50
60
51
61
4. Then synchronize *again* to install the rest:
52
62
53
-
pacman -Suu
63
+
```
64
+
pacman -Suu
65
+
```
54
66
55
67
It might happen that some packages are downgraded, this is expected.
56
68
57
69
5. And finally install the packages containing Git, its documentation and some extra things:
Now you can close the current shell and open a MINGW64 shell (`msys2_shell.cmd -mingw64`) to check that everything went well. Run `git --version` and it should output something like `git version 2.31.0.windows.1` (or newer).
0 commit comments