Exact `svn export` equivalent command for git?

前端 未结 8 846
花落未央
花落未央 2021-02-06 04:53

There is no exact svn export equivalent command for git? Really?

Beware: this is not a duplicate question. That is, I already know and have

8条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-06 05:36

    At some hostings like GitHub you can make exact svn export.

    Example:

    svn export https://github.com/GNOME/banshee/branches/master
    

    Even partial! (some subpart of the repository)

    Example:

    svn export https://github.com/liferay/liferay-portal/branches/6.1.x/tools
    

    For your own repository you should create some GitHub repository and add it as a remote:

    git remote add github https://github.com//.git
    

    then

    git push github 
    

    Now you able to do a partial checkout as above.

提交回复
热议问题