Skip to content

Generic tools and instructions for making it easier to work with git as a team.

Notifications You must be signed in to change notification settings

SparkPost/gitplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

gitplus

Generic tools and instructions for making it easier to work with git. Clone this repo somewhere on your machine.

Good links:

Custom commands

To use these, you need to add them to your $PATH. Add something like this to your ~/.profile or ~/.bash_profile or whatever:

export PATH=$PATH:<path/to/gitplus>/commands

Once added, you'll probably need to source your profile file or start a new terminal window. Then you'll have access to the following commands.

Note: git plus commands will automatically use the repo's default branch if a specific branch is not specified.

git plus

Run git plus upgrade to easily pull the latest of this repo's origin/default branch to your machine.

git plus help will cat the contents of this README

git start

Starts a branch.

# start a branch (off repo default branch by default)
$ git start FAD-1234

# start a branch off main, as specified
$ git start FAD-1234 main

git finish

Does a --no-ff merge to default branch.

Specify "push" as the last argument to auto-push merged branch(es).

# Merge FAD-1234 to default branch
$ git finish

# Merge to default branch and push merged branch to origin
$ git finish push

git update

Merges default branch into your current branch.

Specify "rebase" to rebase the changes rather than merge them.

# Merge default branch into your branch
$ git update

# Rebase default branch into your branch
$ git update rebase

git in

List commits on your current branch in the origin remote that aren't present locally.

$ git in

git out

List commits on your current branch locally that are not in the origin remote.

$ git out

git heads

lol nah jk

git open

Opens the current GitHub repo in your browser. No auth required because the browser does auth for you.

About

Generic tools and instructions for making it easier to work with git as a team.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages