https://github.com/jeonghanlee/git-env
Configuration Environment for git
https://github.com/jeonghanlee/git-env
git
Last synced: over 1 year ago
JSON representation
Configuration Environment for git
- Host: GitHub
- URL: https://github.com/jeonghanlee/git-env
- Owner: jeonghanlee
- License: gpl-2.0
- Created: 2020-07-27T18:54:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-01T23:31:15.000Z (about 5 years ago)
- Last Synced: 2025-01-21T18:32:14.096Z (over 1 year ago)
- Topics: git
- Language: Makefile
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Configuration Environment for git

## Check the version one would like to use
Update the `configure/RELEASE` file by using `RELEASE.local`
```bash
$ echo "SRC_TAG:=tags/v2.28.0" > configure/RELEASE.local
$ make vars
APPNAME = git
DOCURL = https://github.com/git/git
FILTER = 1
INSTALL_LOCATION = /home/jhlee/git
LEVEL = 1
SITE_TEMPLATE_PATH = /home/jhlee/gitsrc/git-env/site-template
SRC_GITURL = https://github.com/git/git
SRC_NAME = git
SRC_PATH = git-src
SRC_TAG = tags/v2.28.0
SRC_URL = https://github.com/git
SUDO =
SUDO_INFO = 0
```
## Normal installation
Git will be installed in `${HOME}/bin`
```bash
make init
make build
make install
```
```bash
git-env (master)$ ~/bin/git --version
git version 2.28.0
```
## More specific installation
* Packages : asciidoc, libpcre2-dev. `make install.pkgs` if the system is Debian 10.
* `INSTALL_LOCATION` in `configure/CONFIG_SITE` according to your desired location.
* Support POSIX threads
* Support PCRE2
* Define the default git editor
```bash
make configure
```
* Install minimal git
```bash
make build
make install
```
## Execute
* Add PATH and LD_LIBRARY_PATH
```bash
export PATH=~/git/bin:$PATH
export LD_LIBRARY_PATH=~/git/libexec
```
```bash
jhlee@parity: git-env (master)$ tree -L 2 ~/git
/home/jhlee/git
├── [jhlee 4.0K] bin
│ ├── [jhlee 19M] git
│ ├── [jhlee 159K] git-cvsserver
│ ├── [jhlee 345K] gitk
│ ├── [jhlee 19M] git-receive-pack
│ ├── [jhlee 12M] git-shell
│ ├── [jhlee 19M] git-upload-archive
│ └── [jhlee 19M] git-upload-pack
├── [jhlee 4.0K] libexec
│ └── [jhlee 4.0K] git-core
└── [jhlee 4.0K] share
├── [jhlee 4.0K] git-core
├── [jhlee 4.0K] git-gui
├── [jhlee 4.0K] gitk
├── [jhlee 4.0K] gitweb
├── [jhlee 4.0K] locale
└── [jhlee 4.0K] perl5
git-env (master)$ ~/git/bin/git --version
git version 2.28.0
```
Enjoy your the latest git!