I know ''git mv'' can be used to rename a file or dir. But I don't know how to rename a project's name?
+8
A:
There are two things you might mean by this
1) the name as displayed by (for example) gitweb
:
edit .git/description
to contain the repository's name.
2) the name of the directory containing the repository, as used by git clone master child
just use the bash mv
command to rename this directory from child
to dev
. Git itself is indifferent to the name you give this directory.
Alex Brown
2010-01-11 13:15:27
+3
A:
A git repo doesn't have a name. You can just rename the directory containing your worktree if you want.
Tobu
2010-01-11 13:17:38