Thanks to visit codestin.com
Credit goes to github.com

Skip to content

uetchy/gst

Repository files navigation

gst: ghq support toolbox

Build Status

Install

go get github.com/uetchy/gst

with Homebrew:

brew install uetchy/gst/gst

Usage

gst list or gst

List all of repositories changed git status

gst
/Users/uetchy/repos/src/github.com/uetchy/cabret
-- 4 hours ago
A  .eslintrc
M  .gitignore
A  app/ArticleList.jsx
A  app/Header.jsx
A  app/app.jsx
M  index.css
M  index.html
M  index.js
M  package.json

/Users/uetchy/repos/src/github.com/uetchy/gst
-- 3 minutes ago
A  changelog.md
R  gst.go -> main.go

with --short option:

gst --short
/Users/uetchy/repos/src/github.com/uetchy/ferret
/Users/uetchy/repos/src/github.com/uetchy/gst

You can also use peco for pipeline processing as:

❯ cd $(gst --short | peco)

new

Create git repository.

Before start using 'new' and 'rm' command, You must set 'github.user' to .gitconfig with git config --global github.user <user>.

gst new awesome-project
/Users/uetchy/repos/src/github.com/uetchy/awesome-projectgst new epic-team/awesome-project
/Users/uetchy/repos/src/github.com/epic-team/awesome-project

with cd, You can jump to created project:

cd $(gst new awesome-project)

or with declare function:

newrepo() {
  cd $(gst new ${1})
}

rm

Remove git repository.

gst rm horrible-project
Remove? /Users/uetchy/repos/src/github.com/uetchy/horrible-project

doctor

Health-check for repositories.

gst doctor
[bitbucket.org/uetchy/scent] git remote origin has changed:
   Expected:   github.com/uetchy/google-cloud-vision-raspi-sample
   Actual:	   bitbucket.org/uetchy/scent

About

👻 Supercharge your ghq workflow.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Contributors 4

  •  
  •  
  •  
  •