sudo npm install -g gitke --unsafe-perm # running as root
# Run Innstall nodegit
npm install nodegit --verbose
# Run the server
gitke
# Open your browser and visit http://localhost:2018/
git push [email protected]:owner/repo.git master
git clone ssh://[email protected]/opt/my-first-app.git
git clone http://username:[email protected]:2018/owner/repo.git
git clone http://127.0.0.1:2018/admin/test.git test
git fetch http://127.0.0.1:2018/admin/test.git test
Serving content of a file in a git repo.
The requested file is specified by:
{owner}
: GitHub organization or user{repo}
: repository name{ref}
: Git reference- branch name (e.g.
master
) - tag name (e.g.
v1.0
)
- branch name (e.g.
https://localhost:2018/{owner}/{repo}/raw/{ref}/path/to/file
http://localhost:2018/admin/gitke/raw/master/README.md
- Git Internals - Transfer Protocols
- HTTP transfer protocols
- Documentation Common to Pack and Http Protocols
git clone https://github.com/jaywcjlove/gitke.git
sudo npm install --unsafe-perm # running as root
# Or
sudo yarn install
# Run the app
# Restart the app automatically every time code changes.
# Useful during development.
npm run dev
Open your browser and visit http://localhost:2018/
The MIT License (MIT)