From d9c8bbd1e9789611af885a05720660786f1f2036 Mon Sep 17 00:00:00 2001 From: "http://joeyh.name/" Date: Fri, 18 Jan 2013 18:20:44 +0000 Subject: [PATCH] Added a comment --- ..._a9bfbd82f7bb47661f0d9e0e0d904332._comment | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 doc/forum/How_to_rename_a_remote__63__/comment_1_a9bfbd82f7bb47661f0d9e0e0d904332._comment diff --git a/doc/forum/How_to_rename_a_remote__63__/comment_1_a9bfbd82f7bb47661f0d9e0e0d904332._comment b/doc/forum/How_to_rename_a_remote__63__/comment_1_a9bfbd82f7bb47661f0d9e0e0d904332._comment new file mode 100644 index 0000000000..31f44c8f6f --- /dev/null +++ b/doc/forum/How_to_rename_a_remote__63__/comment_1_a9bfbd82f7bb47661f0d9e0e0d904332._comment @@ -0,0 +1,28 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + ip="4.154.3.194" + subject="comment 1" + date="2013-01-18T18:20:43Z" + content=""" +You can rename a git remote with just \"git remote rename \". However, for a special remote, git-remote will fail to rename it unless you first add a dummy remote..fetch value in .git/config. You can remove it later. + +So, for example: + +
+git config remote.$uglyname.fetch dummy
+git remote rename $uglyname $nicename
+git config remote.$nicename.fetch \"\"
+
+ +(The webapp handles doing this when you edit a remote's name, BTW.) + +--- + +There's actually another place the name of a special remote is recorded, in `remote.log`. That name is only used when you use `git annex initremote` though. It actually is possible to change it, by using `initremote` to change the vale of the name field. Example: + +
+git annex initremote $uglyname name=$newname
+
+ +Note that for some types of special remotes, this will require you to re-specify some other configuration. For example, with a directory special remote, it wanted me to include a directory= parameter. +"""]]