Skip to content

Commit

Permalink
git-mv-remote: rename a remote regardless of any existing remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
timfeirg committed Apr 26, 2019
1 parent a214c93 commit 69d96f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/git-mv-remote
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

old=$1
new=$2

test -z $old && echo "old remote name required." 1>&2 && exit 1
test -z $new && echo "new remote name required." 1>&2 && exit 1

git remote remove $new || true
git remote rename $old $new

0 comments on commit 69d96f3

Please sign in to comment.