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
Once you set up these dependences, you can then install Git.
14
-
15
6
## Obtaining Git on z/OS
16
-
Git on z/OS can be downloaded from https://github.com/ZOSOpenTools/gitport/releases.
17
-
18
-
If you have curl on your system, you can download the latest version with:
19
-
```
20
-
curl -L -o gitport.pax.Z https://pathtogit.pax.Z
21
-
```
22
-
You can then extract the pax.Z as follows:
23
-
```
24
-
pax -rf gitport.pax.Z
25
-
cd git-*
26
-
```
27
-
28
-
## Setting up a CA Certificate
29
-
To obtain a CA certificate, you can download the recommended CA certificates extracted from Mozilla here:
30
-
https://curl.se/docs/caextract.html
7
+
Git on z/OS can be downloaded from https://github.com/zopencommunity/gitport/releases.
31
8
32
-
If you have [zopen](https://zosopentools.github.io/meta/#/Guides/zopen) in your path, you can use the `zopen update-cacerts` command to download the latest CA certificate.
33
-
34
-
Once you have a CA Certificate on your file system, you can set the GIT_SSL_CAINFO environment variable to point to it.
35
-
```
36
-
export GIT_SSL_CAINFO=/path/to/my/cacert.pem
37
-
```
38
-
39
-
40
-
## Setting up Git on z/OS
41
-
Once installed, you will need to source the .env file as follows:
42
-
43
-
`. ./.env`
44
-
45
-
This will set the PATH, LIBPATH, MANPATH and other Git environment variables.
9
+
However, it is recommended that you obtain Git via the [zopen package manager](https://zopen.community/#/Guides/QuickStart).
46
10
47
11
## Encoding considerations
48
12
Git on z/OS leverages Git's `.gitattributes` support to enable support for various encodings, documented [here](https://git-scm.com/docs/gitattributes).
@@ -103,7 +67,6 @@ cd git
103
67
ls -lT # you will notice that all files are now tagged as 819
104
68
```
105
69
106
-
107
70
### Binary files
108
71
To specify a binary encoding, you can use the binary attribute as follows:
109
72
```
@@ -125,4 +88,4 @@ You can specify multiple working-tree-encoding attributes, where the later attri
125
88
### Migration considerations
126
89
If you are migrating from Rocket Software's Git, then the good news is that Git on z/OS should be compatible.
127
90
128
-
If you encounter any issues, please open an issue under https://github.com/ZOSOpenTools/gitport/issues.
91
+
If you encounter any issues, please open an issue under https://github.com/zopencommunity/gitport/issues.
0 commit comments