Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 682 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 682 Bytes

git-helpers

A simple library of git custom commands

Commands

Working with a repo and a private fork:

  • git push2: Pushes to both remotes at once
  • git sync: Syncs master between repositories and rebases current branch to the last version of master
  • git upstream: Creates in the desired remote(origin by default) the current branch
  • git squash: Opens an interactive rebase between you current branch and master

Setup

  1. Clone folder
  2. Add folder to PATH
  3. Copy envs.example.sh to envs.sh and fill with your data
  4. Double-check that git-* files have exec permission
  5. Use it!

TODO

  • Support for -h
  • Improve squash to do an actual complete squash