https://github.com/bborbe/git-sync
Sync Git repo to directory
https://github.com/bborbe/git-sync
Last synced: 5 months ago
JSON representation
Sync Git repo to directory
- Host: GitHub
- URL: https://github.com/bborbe/git-sync
- Owner: bborbe
- License: apache-2.0
- Created: 2016-04-03T13:36:30.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-19T07:14:44.000Z (about 1 year ago)
- Last Synced: 2025-03-19T08:24:46.704Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 7.53 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Git-Sync
Sync Git repo to directory
## Install
```
go get github.com/bborbe/git-sync
```
## Usage
With params
```
git-sync \
-logtostderr \
-v=2 \
-repo https://github.com/bborbe/git-sync.git \
-dest /tmp/git-sync
```
With username and password
```
git-sync \
-logtostderr \
-v=2 \
-repo https://github.com/bborbe/git-sync.git \
-dest /tmp/git-sync \
-username gituser \
-password gitpassword
```
With env
```
GIT_SYNC_USERNAME=gituser \
GIT_SYNC_PASSWORD=gitpassword \
GIT_SYNC_REPO=https://github.com/bborbe/git-sync.git \
GIT_SYNC_DEST=/tmp/git-sync \
git-sync \
-logtostderr \
-v=2
```
## Docker
```
mkdir -p /tmp/git-sync
docker run \
-v /tmp/git-sync:/git \
-e GIT_SYNC_DEST=/git \
-e GIT_SYNC_REPO=https://github.com/bborbe/git-sync.git \
bborbe/git-sync:1.1.6 \
-logtostderr \
-v=2
```