Skip to content

Instantly share code, notes, and snippets.

View eelhak222-tech's full-sized avatar
💭
I may be slow to respond.

eelhak222-tech

💭
I may be slow to respond.
View GitHub Profile
#!/usr/bin/env ruby
## git-publish-branch: a simple script to ease the unnecessarily complex
## task of "publishing" a branch, i.e., taking a local branch, creating a
## reference to it on a remote repo, and setting up the local branch to
## track the remote one, all in one go. you can even delete that remote
## reference.
##
## Usage: git publish-branch [-d] <branch> [repository]
##