{"thread":{"id":"63892","subject":"Minor issue: \"git remote rename origin skybuck_repository\" removes comments behind refspecs in .git/config","startedAt":"2025-08-01T17:58:48Z","lastAt":"2025-08-01T17:58:48Z","messageCount":1,"participants":["Skybuck Flying"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"523232","messageId":"DB7PR02MB4265AB8791FADBBC5968C74BB326A@DB7PR02MB4265.eurprd02.prod.outlook.com","threadId":"63892","inReplyTo":null,"subject":"Minor issue: \"git remote rename origin skybuck_repository\" removes comments behind refspecs in .git/config","fromName":"Skybuck Flying","fromEmail":"skybuck2000@hotmail.com","sentAt":"2025-08-01T17:58:45Z","receivedAt":"2025-08-01T17:58:48Z","isPatch":false,"sender":{"key":"skybuck2000@hotmail.com","avatar":"https://gravatar.com/avatar/4ab663b18fe6174125b5b436538d435bbddad844433e1165b4d64363106e4114?d=mp&s=160"},"body":"(Before rename command): The .git/config file:\n\n<snip>\n[remote \"origin\"]\n      url = https://github.com/SkybuckFlying/RamDiskSupportUtility.git\n      fetch = +refs/heads/*:refs/remotes/origin/*                       ; All remote branches\n      fetch = +refs/tags/*:refs/tags/*                            ; All remote tags\n      fetch = +refs/notes/*:refs/remotes/origin/notes/*                 ; All remote notes (map to remote-tracking notes)\n      fetch = +refs/pull/*/head:refs/remotes/origin/pull/*/head         ; GitHub/GitLab PR heads\n      ; fetch = +refs/changes/*:refs/remotes/origin/changes/*           ; Gerrit changes (commented out as per your request)\n      ; fetch = +refs/meta/config:refs/remotes/origin/meta/config             ; Versioned remote config (if applicable) \n<snip>\n\n(Then rename command):\n\ngit remote rename origin skybuck_repository\n\n(After rename command):\n\nThe .git/config file:\n\n<snip>\n[remote \"skybuck_repository\"]\n      url = https://github.com/SkybuckFlying/RamDiskSupportUtility.git\n      fetch = +refs/heads/*:refs/remotes/skybuck_repository/*\n      fetch = +refs/tags/*:refs/tags/*\n      fetch = +refs/notes/*:refs/remotes/skybuck_repository/notes/*\n      fetch = +refs/pull/*/head:refs/remotes/skybuck_repository/pull/*/head\n      ; fetch = +refs/changes/*:refs/remotes/origin/changes/*           ; Gerrit changes (commented out as per your request)\n      ; fetch = +refs/meta/config:refs/remotes/origin/meta/config             ; Versioned remote config (if applicable) \n<snip>\n\nNotice how the git rename command removed the comments, this is somewhat unfortunately.\nFortunately a copy of the original is still available.\n\nFurther tiny little issue, the command in comments not changed, but I can do that manually, leave as is, since it might contain info in case somebody wants to revert things ;)\n\nBye for now,\n  Skybuck Flying !"}]}