JSPM

@swimauger/gitproxy

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q10893F
  • License MIT

A Node.js package for running git over a proxy

Package Exports

  • @swimauger/gitproxy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@swimauger/gitproxy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GitProxy Node.js Package

Node.js package built for running git commands over a proxy

NOTE: GitProxy uses the git command to run over a proxy, so please be sure Git is installed before proceeding!

Installation

Install gitproxy npm install @swimauger/gitproxy -g

Usage

    Usage: gitproxy [options]

    If no options are selected it will treat the command like git

    Options:
    -u, --up <protocol>    open proxy with protocol http or https
    -d, --down <protocol>  shutdown proxy with protocol http or https
    -l, --list             list current proxies
    -h, --help             display help for command

Examples

Running normal git

    gitproxy push origin master

Treat gitproxy like a normal git command. For instance git add . would be gitproxy add .

GitProxy can also be used interchangably with normal Git

    git add -A
    git commit -m "A very urgent test commit"
    gitproxy push origin master

GitProxy mostly serves a purpose for pushing to repos and such. For example gitproxy status does not really serve any purpose over the normal git status. That said, feel free to use however you like : )

Edit git config proxies

    # Open up a new https proxy in the git config
    gitproxy -u https

    # Delete the http proxy in the git config
    gitproxy -d http

GitProxy can set a new random proxy for you in the gitconfig; however, by running gitproxy as a git command, it could overwrite the old proxy with a new one under the conditions that the repo is using the same SSL protocol

List git config proxies

      gitproxy -l

# ======= OR ======= #

    gitproxy --list

gitproxy -l will list open proxies on either http or https and if there are any.

Help

    gitproxy -h

If you are ever stuck refer to the help menu with gitproxy -h or gitproxy --help. You can also see the different flag names there are.