开发者

Create build WS in Git

开发者 https://www.devze.com 2023-04-10 02:59 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消