I am using SVN most of time aand recently started to use Git.
Evvery time, I 开发者_Python百科need to make an official build. In SVN,
I would do: 1) mkdir build1 && cd build1 2) svn co ~SVN_URL
How can I accomplish the steps in Git?
Thanks, Thomas
mkdir build1 && cd build1
git clone GIT_URL .
or
git clone GIT_URL build1
cd build1
"official build" as in "package users can download"? If yes, have a look at git-archive
.
Usually you just do
git clone <url>
A top-level directory will automatically be created based on the repo name. If you want a custom name for it you can do:
git clone <url> build1
Where build1
is the custom directory name.
精彩评论