https://github.com/menduz/git-sync
Upload local files to github repository, using GitHub API
https://github.com/menduz/git-sync
Last synced: 5 months ago
JSON representation
Upload local files to github repository, using GitHub API
- Host: GitHub
- URL: https://github.com/menduz/git-sync
- Owner: menduz
- License: mit
- Created: 2016-06-15T14:43:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T16:25:35.000Z (about 5 years ago)
- Last Synced: 2025-03-27T14:53:39.445Z (9 months ago)
- Language: TypeScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-sync tool
This tool allows you to upload your local files to a github repository
## Install
`npm i --save github:menduz/git-sync`
## Usage
Create a `.git-sync` file on any folder with this structure
```yaml
auth:
# github user name
user: "menduz"
# github personal token
token: "githubUserToken"
# github repo
repository: "menduz/git-sync"
# glob, files to upload, optional
pattern: "**/*"
# name of the target branch, optional
branch: master
```
And then execute this command line on the folder
`$ git-sync`
Done.
## CI Process
You may use this on your CI process to upload results or generated files, if you dont want to store your token on travis you can use secured ENV vars:
- `GIT_SYNC_USER` Github user name
- `GIT_SYNC_TOKEN` Github personal token
- `GIT_SYNC_REPO` Github repo
- `GIT_SYNC_PATTERN` File pattern, glob
- `GIT_SYNC_BRANCH` Target branch