We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 204893c commit 7574594Copy full SHA for 7574594
git-retrack
@@ -0,0 +1,10 @@
1
+#!/bin/sh
2
+
3
+# Based on an alias written by doener on #git.
4
5
+# usage: git retrack URL BRANCH
6
7
+branch=$(git rev-parse --symbolic-full-name HEAD | sed 's/refs\/heads\///')
8
9
+git config branch.$branch.remote "$1"
10
+git config branch.$branch.merge "refs/heads/${2:-$branch}"
0 commit comments