An open API service indexing awesome lists of open source software.

https://github.com/lullaby6/gitpush

Python CLI App - git add, commit and push in a same command! "gp -c 'first commit!'"
https://github.com/lullaby6/gitpush

git python

Last synced: over 1 year ago
JSON representation

Python CLI App - git add, commit and push in a same command! "gp -c 'first commit!'"

Awesome Lists containing this project

README

          

# GitPush

A fast method to push!

## Installation (Windows)

#### Manual

[Download](https://github.com/lullaby6/GitPush/releases/download/v1.0.2/gp.exe) and move the .exe file into "C:\Windows"

#### Power Shell

```bash
powershell -c "irm https://rawcdn.githack.com/lullaby6/GitPush/c06744356cd2f8b57c542ed845894951de3354d5/i.ps1 | iex"
```

## Usage
On your shell:

```bash
gp -c 'first commit!' -b master
```

If no branch is specified:

```bash
gp -c 'quick update'
```

This will execute a simple `git push` without specifying a branch.

To set the upstream flag:

```bash
gp -c 'initial commit' -b master -u
```

This will execute `git push -u origin master`.

### Options
```bash
-h, --help show this help message and exit
--commit COMMIT, -c COMMIT
Commit message (default: "commit")
--branch BRANCH, -b BRANCH
Branch name (if not specified, only "git push" is executed)
--upstream, -u Set upstream flag
```