![](/img/trans.png)
[英]Trying to clone SVN repository to local machine using the git svn clone command
[英]GIT Delete Repository and clone on local machine
我在本地計算機上有一個名為* master的分支
我有三個存儲庫:
在此本地計算機上,文件存在很多問題,不同步等。已決定僅刪除/ site目錄並從master重新克隆此目錄。 我不確定該怎么做。
通常,簡單地rm -rf /my/git/repo
然后git clone <wherever I want to clone from> /my/new/git/repo
我想這就是你想要的-
$ rm -fr /git/site
$ mkdir /git/site && cd /git/site
$ git init
$ git remote add origin git@github.com/org/repo.git
$ git pull origin master
您的/git/site
現在將重置為您的master分支。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.