Skip to content

Commit

Permalink
Add script to link to upstream branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Meredith committed Apr 5, 2017
1 parent 3555d62 commit 1ba3cff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-current-branch
@@ -0,0 +1,2 @@
#!/bin/bash
git rev-parse --abbrev-ref HEAD
5 changes: 5 additions & 0 deletions git-link-upstream
@@ -0,0 +1,5 @@
#!/bin/bash

BRANCH=$(git-current-branch)

git branch --set-upstream-to=origin/$BRANCH $BRANCH

0 comments on commit 1ba3cff

Please sign in to comment.