⬛️ Git

[Github] How to copy repositroy from others?

10000COW 2022. 12. 19. 01:14
728x90

If you want to copy other person's repository and move into your own github repository,

follow this command in your terminal

1. git clone repository-address-you-want-to-get.git

2. cd repository-address-you-want-to-get

3. git remote set-url --push origin repository-your-own.git

4. git push --mirror

 

For example, if i want to copy repository from 'https://github.com/ljykevin3882/Tayong' (FROM)

And I make repository for copy, https://github.com/YEOMJINSEOP/Tayong (TO)

 

Open the terminal and Type commands below.

 

1. git clone https://github.com/ljykevin3882/Tayong.git

2. cd https://github.com/ljykevin3882/Tayong

3. git remote set-url --push origin https://github.com/YEOMJINSEOP/Tayong.git

4. git push --mirror

 

Then, you can see files from other's repo in your own repo!

728x90