1. The –username parameter is optional in the above command, although –trunk, –tags and –branches are also optional from the git svn manual, but I do recommend you explicitly specify them respectively. I did encounter few different weird issues before I explicitly specify them.
2. Most of times, the command doesn’t work under my windows version’s git, I had to switch to MAC & Ubuntu.
My company has their own bootstrap and requires every developer use this bootstrap when set up a new site.
Previously I was quite new to Git, so my temporary solution was clone the existing repo and update the existing remote url to the new repo url, then run the push command to import bootstrap code into new repo.
There is pro and con in the above method and sometimes make git newbie confused.
Pro: After push to new repo, you can work against the current directory directly.
Con: If you need to set up another site, you have to clone the bootstrap again into another new directory.
Today, after one hour research, I finally found a better way to achieve the same goal and make more sense to git newbie.
The following steps show you how to create a new git repository from the existing repository
Create new repo e.g. RepoTest
Clone the existing repo
Run git push <your new repo url> master
Clone the new repo and now you could start to work on it.
For windows user, if you use the git bash command line with https protocol, you need to enter the password every time when you push to the remote repository. As a windows user, you can use “git-credential-winstore” tool to remember the username and password.