https://github.com/jonaylor89/gitlocalstats
Show commit map on your local machine
https://github.com/jonaylor89/gitlocalstats
golang workflow
Last synced: 5 months ago
JSON representation
Show commit map on your local machine
- Host: GitHub
- URL: https://github.com/jonaylor89/gitlocalstats
- Owner: jonaylor89
- Created: 2019-04-02T14:41:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-13T17:57:09.000Z (almost 7 years ago)
- Last Synced: 2024-05-01T16:50:58.113Z (about 2 years ago)
- Topics: golang, workflow
- Language: Go
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitLocalStats
--------------------
# Dependencies & Building
```sh
~$ go get -u gopkg.in/src-d/go-git.v4/... # For git api
~$ go get -u github.com/joho/godotenv # For configuration
~$ go build
```
--------------------
# Usage
If you want to use this project, make sure there is a .gitlocalstats file in your home directory that contains
your email and the path to your repos.
```
email=my-email
folder=/path/to/repos
```
The project will recursively scan through the file system looking for git repos starting with the
folder you specify in .gitlocalstats.
```sh
~$ ./gitlocalstats
```
since it's a long command I recommend aliasing it or copying it to some bin/ directory in your PATH to be run anywhere
```sh
~$ mkdir ~/bin
~$ PATH="$HOME/bin:$PATH"
~$ mv gitlocalstats ~/bin/gitlocalstats
~$ alias gls="gitlocalstats"
~$ gls
```
