npm install fooAn opinionated git cli for OSS.
``js`
npm install -g foo | yarn global add foo
Gets a remote branch. This will add a remote origin if it does not exist, fetches it and checkouts the specified PR branch.
`bash`
foo checkout
foo co branch
- - The username and branch e.g @[user]/[branch] or @[user]:[branch]id
- - The pull request id e.g 4381 or #4381 (in development)url
- - The pull request url e.g https://github.com/devtools-html/debugger.html/pull/4381 (in development)
Shows changes between commits, commit and working tree, etc
`bash`
foo diff
Shows the commit logs.
`bash`
foo log
Pushes your local branch to GH, regardless of remote.
`bash``
foo push