0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

リポジトリの複製(プロジェクトを別名で複製)する方法

Posted at

#プロジェクトをコピーしてそれぞれ別物として運用したいときになど!


git clone --mirror git@github.com:a.git hoge
git clone --mirror 複製元のgithubのリポジトリurl 複製先のフォルダ名 


cd 複製先ローカルフォルダに入る


※※ githubで複製先のリモートリポジトリを新しく作っておく ※※


git remote set-url origin git@github.com:複製先.git


git push --mirror origin



0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?