gs

git-spindle

Command-line interface to GitHub and other central git services

Showing:

Popularity

Downloads/wk

0

GitHub Stars

176

Maintenance

Last Commit

4mos ago

Contributors

19

Package

Dependencies

4

License

Categories

Readme

Integrating git with central services

Many central git hosting services, such as GitHub and GitLab, provide an API to perform actions such as creating repositories and filing pull requests. git-spindle is a collection of git subcommands to make using these services easier.

For example, to fork and clone a repository on GitHub, one can now simply use

git hub clone seveas/whelk

With this git subcommand, you can perform various github actions, such as creating or forking a repository from the command line.

To install the latest released version on Ubuntu:

sudo add-apt-repository ppa:dennis/python
sudo add-apt-repository ppa:dennis/devtools
sudo apt-get update
sudo apt-get install git-spindle

To install the latest released version on Windows:

Install git from http://git-for-windows.github.io/
Install python 3.5 or newer from https://www.python.org/downloads/
Run the following 2 commands in a command prompt:
py -mensurepip
py -mpip install git-spindle

To install the latest released version on other systems, assuming python and pip are installed:

pip install git-spindle

Usage:

(For detailed information, go to https://git-spindle.seveas.net)

Add an account to the configuration: git hub add-account [--host=] Add a user as collaborator: git hub add-collaborator ... Add a deploy key: git hub add-deploy-key [--read-only] ... Add a repository hook: git hub add-hook [...] Adds keys to your public keys: git hub add-public-keys [...] Add user's fork as a named remote. The name defaults to the user's loginname: git hub add-remote [--ssh|--http|--git] [] Applies a pull request as a series of cherry-picks: git hub apply-pr Open the GitHub page for a repository in a browser: git hub browse [--parent][<repo>] [

] Show a timeline of a user's activity: git hub calendar [] Display the contents of a file on GitHub: git hub cat ... Check the github pages configuration and content of your repo: git hub check-pages [][--parent] Clone a repository by name: git hub clone [--ssh|--http|--git]--triangular [--upstream-branch=]] [--parent][git-clone-options] [] List collaborators of a repository: git hub collaborators [] Configure git-spindle, similar to git-config: git hub config [--unset] [] Create a repository on github to push to: git hub create [--private][--org=<org>] [--description=] Create a personal access token that can be used for git operations: git hub create-token [--store] Lists all keys for a repo: git hub deploy-keys [] Edit a hook: git hub edit-hook [...] Fetch refs from a user's fork: git hub fetch [--ssh|--http|--git] [] Fork a repo and clone it: git hub fork [--ssh|--http|--git]--triangular [--upstream-branch=]] [] List all forks of this repository: git hub forks [] Create a new gist from files or stdin: git hub gist [--description=] ... Show all gists for a user: git hub gists [] Show hooks that have been enabled: git hub hooks Show gitignore patterns for one or more languages: git hub ignore [...] Show the IP addresses for github.com services in CIDR format: git hub ip-addresses [--git][--hooks] [--importer][--pages] Show issue details or report an issue: git hub issue [][--parent] [...] List issues in a repository: git hub issues [][--parent] [...] Display github log for yourself or other users. Or for an organisation or a repo: git hub log [--type=][--count=<count>] [--verbose][<what>] Display the contents of a directory on GitHub: git hub ls [...] Mirror a repository, or all repositories for a user: git hub mirror [--ssh|--http|--git][<repo>] Create a graphviz graph of followers and forks: git hub network [] Protect a branch against deletions, force-pushes and failed status checks: git hub protect [--enforcement-level=][--contexts=<contexts>] List active branch protections: git hub protected Lists all keys for a user: git hub public-keys [] Opens a pull request to merge your branch to an upstream branch: git hub pull-request [--issue=][--yes] [<yours:theirs>] Get the README for a repository: git hub readme [] Create a release: git hub release [--draft][--prerelease] [] List all releases: git hub releases [] Remove a user as collaborator: git hub remove-collaborator ... Remove deploy key by id: git hub remove-deploy-key ... Remove a hook: git hub remove-hook Render a markdown document: git hub render [--save=] List all repos of a user, by default yours: git hub repos [--no-forks][<user>] Let the octocat speak to you: git hub say [] Set the remote 'origin' to github.: git hub set-origin [--ssh|--http|--git]--triangular [--upstream-branch=]] Display current and historical GitHub service status: git hub status Remove branch protections from a branch: git hub unprotect Display GitHub user info: git hub whoami Display GitHub user info: git hub whois ...

Add an account to the configuration: git lab add-account [--host=] Add a project member: git lab add-member [--access-level=guest|reporter|developer|master|owner] ... Adds keys to your public keys: git lab add-public-keys [...] Add user's fork as a named remote. The name defaults to the user's loginname: git lab add-remote [--ssh|--http] [] Applies a merge request as a series of cherry-picks: git lab apply-merge Open the GitLab page for a repository in a browser: git lab browse [--parent][<repo>] [

] Show a timeline of a user's activity: git lab calendar [] Display the contents of a file on GitLab: git lab cat ... Clone a repository by name: git lab clone [--ssh|--http]--triangular [--upstream-branch=]] [--parent][git-clone-options] [] Configure git-spindle, similar to git-config: git lab config [--unset] [] Create a repository on gitlab to push to: git lab create [--private|--internal][--group=<group>] [--description=] Fetch refs from a user's fork: git lab fetch [--ssh|--http] [] Fork a repo and clone it: git lab fork [--ssh|--http]--triangular [--upstream-branch=]] [] Show issue details or report an issue: git lab issue [][--parent] [...] List issues in a repository: git lab issues [][--parent] [...] Display GitLab log for a repository: git lab log [] Display the contents of a directory on GitLab: git lab ls [...] List repo memberships: git lab members [] Opens a merge request to merge your branch to an upstream branch: git lab merge-request [--yes][<yours:theirs>] Mirror a repository, or all your repositories: git lab mirror [--ssh|--http][<repo>] Protect a branch against force-pushes: git lab protect List protected branches: git lab protected Lists all keys for a user: git lab public-keys [] Remove a user's membership: git lab remove-member ... List all your repos: git lab repos [--no-forks] Set the remote 'origin' to gitlab.: git lab set-origin [--ssh|--http]--triangular [--upstream-branch=]] Remove force-push protection from a branch: git lab unprotect Display GitLab user info: git lab whoami Display GitLab user info: git lab whois ...

Add an account to the configuration: git bb add-account Add a deploy key: git bb add-deploy-key ... Add privileges for a user to this repo: git bb add-privilege [--admin|--read|--write] ... Adds keys to your public keys: git bb add-public-keys [...] Add user's fork as a named remote. The name defaults to the user's loginname: git bb add-remote [--ssh|--http] [] Applies a pull request as a series of cherry-picks: git bb apply-pr Open the GitHub page for a repository in a browser: git bb browse [--parent][<repo>] [

] Display the contents of a file on BitBucket: git bb cat ... Clone a repository by name: git bb clone [--ssh|--http]--triangular [--upstream-branch=]] [--parent][git-clone-options] [] Configure git-spindle, similar to git-config: git bb config [--unset] [] Create a repository on bitbucket to push to: git bb create [--private][--team=<team>] [--description=] Lists all keys for a repo: git bb deploy-keys [] Fetch refs from a user's fork: git bb fetch [--ssh|--http] [] Fork a repo and clone it: git bb fork [--ssh|--http]--triangular [--upstream-branch=]] [] List all forks of this repository: git bb forks [] Invite users to collaborate on this repository: git bb invite [--read|--write|--admin] ... Show issue details or report an issue: git bb issue [][--parent] [...] List issues in a repository: git bb issues [][--parent] [...] Display the contents of a directory on BitBucket: git bb ls [...] Mirror a repository, or all repositories for a user: git bb mirror [--ssh|--http][<repo>] List repo privileges: git bb privileges [] Lists all keys for a user: git bb public-keys [] Opens a pull request to merge your branch to an upstream branch: git bb pull-request [--yes][<yours:theirs>] Remove deploy key by id: git bb remove-deploy-key ... Remove a user's privileges: git bb remove-privilege ... List all repos of a user, by default yours: git bb repos [--no-forks][<user>] Set the remote 'origin' to github.: git bb set-origin [--ssh|--http]--triangular [--upstream-branch=]] Create a new snippet from files or stdin: git bb snippet [--description=] ... Show all snippets for a user: git bb snippets [] Display BitBucket user info: git bb whoami Display GitHub user info: git bb whois ...

Copyright (C) 2012-2020 Dennis Kaarsemaker dennis@kaarsemaker.net

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100