Skip to content

getto-systems/git-pub

Repository files navigation

git-pub

push current-branch to remote

git commit -m "some changes"

git pub

# pull request ...
# and merged

git purge
Table of Contents

Requirements

  • GNU bash, version 4.3.48(1)-release (x86_64-alpine-linux-musl)
  • git version 2.14.2

Usage

to install git-pub, clone into your bash-scripts directory, and export PATH

INSTALL_DIR=path/to/scripts/git-pub

git clone https://github.com/getto-systems/git-pub.git $INSTALL_DIR

export PATH=$INSTALL_DIR/bin:$PATH

git pub

push current-branch to remote that named 'pub'

git pub #=> git push pub <CURRENT_BRANCH>

git purge

  1. check current branch is fully merged into parent branch
  2. checkout parent branch
  3. delete current branch

git parent

detect base branch of current-branch

git checkout master
git checkout -b branch-A
git commit -m "some changes"

git parent # => master

git parent-sync

fetch origin, then rebase origin/$parent

git wipe-widow-branch

delete branches that upstream is already deleted

git fetch --prune
git wipe-widow-branch

git reg-pub

register remote that named 'pub'

git reg-pub github:GITHUB_USER bitbucket:BITBUCKET_USER #=>
  git remote add pub $URL

License

git-pub is licensed under the MIT license.

Copyright © since 2016 [email protected]

About

push current-branch to remote

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages