https://github.com/weaming/git-refs
list git references(branches, tags) on local and remote repositories.
https://github.com/weaming/git-refs
Last synced: about 2 months ago
JSON representation
list git references(branches, tags) on local and remote repositories.
- Host: GitHub
- URL: https://github.com/weaming/git-refs
- Owner: weaming
- Created: 2021-01-21T11:31:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T02:40:23.000Z (over 5 years ago)
- Last Synced: 2025-02-13T15:46:14.923Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git refs
list git references(branches, tags) on local and remote repositories.
## Install
pip3 install -U git-refs
## Example
```bash
$ git-refs
local branch master 5a4344acd93627b7e20d5c86aa18a587c90a17d9 -> origin/master
remote reference master 5a4344acd93627b7e20d5c86aa18a587c90a17d9 origin
```
### CSV output format
```bash
$ CSV=1 git-refs
where,type,name,sha,remote
local,branch,master,5a4344acd93627b7e20d5c86aa18a587c90a17d9,origin/master
remote,reference,master,5a4344acd93627b7e20d5c86aa18a587c90a17d9,origin
```
You can use [`printable`](https://github.com/weaming/printable) to view csv in terminal:
CSV=1 git-refs | printable -t csv -f /dev/stdin