How to change a local repository name on GitHub for Windows
Asked Answered
A

1

7

I'm currently using GitHub for Windows to track a few local repositories. However, I'm having a slight problem: whenever I drag and drop a folder I want to track into the UI, the repo automatically takes the name of the folder.

E.g. the following repo is based on a folder called "v2":

Example repo name

How can I change the repo name to better reflect the project name, without modifying the target folder?

Thanks a ton!

Auburta answered 24/8, 2013 at 12:14 Comment(3)
Did you happen to resolve this yet?Dang
@RobertKoritnik no sir!Auburta
The only way I was able to do it was to (1) stop tracking the repo, (2) rename the folder and (3) drag the folder back into GitHub for Windows (start tracking it again but at new location). It seems that GHfW uses folder name to display local repository display name...Dang
R
0

you can write repo name in .git/description

Richmal answered 24/8, 2013 at 12:20 Comment(4)
I've tried replacing the content of the description file, but GitHub for Windows still doesn't recognize it. Any ideas?Auburta
@wedens: Do we have to just add it as plain text or set some sort of a variable or anything in this description file?Dang
@RobertKoritnik plain textRichmal
Well it doesn't work then... :( All I could do is to rename the folder and re-drag it to GHfW. It seems that display name is taken from folder name.Dang

© 2022 - 2024 — McMap. All rights reserved.