tags:

views:

140

answers:

2

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
+3  A: 

A git repo doesn't have a name. You can just rename the directory containing your worktree if you want.

Tobu