Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to link to upstream branch
- Loading branch information
Martin Meredith
committed
Apr 5, 2017
1 parent
3555d62
commit 1ba3cff
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
git rev-parse --abbrev-ref HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
BRANCH=$(git-current-branch) | ||
|
||
git branch --set-upstream-to=origin/$BRANCH $BRANCH |