Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 5

Newbie (possible) stupid question

Solved! Go to Solution.

Hi everybody, I am sorry if this was already answered and I just didn't found the topic and I am also sorry if it sounds too stupid for you guys.

Anyway, my question is: Is it possible to clone a repository from a Github to another Github without using any local tool?

The goal is to be able to create a new Github containing a base project(which is at another github), even when not able to instal the Git locally. The Github website interface is VERY usefull and one can do almost everything using a regular folder on the computher (or a pendrive) without having Git on it. But to start over, it's pointless to copy  some 100s of files manually.

 

Thanks a lot,

Marcio Jr.

4 Replies
Solution
Copilot Lvl 3
Message 2 of 5

Re: Newbie (possible) stupid question

If you mean copying a remote project to your remote repository, yes you have a solution: `Github fork`

If you mean copying a remote project to your local computer, I think `git clone` is the clean and only answer.

 

However, if you still simply want a copy to your local place and you don't really care about any ideas of version control, so that's the reason you didn't want to install git, well Github can do that for you: `Download ZIP`.

 

1. find this from Github project main page.

image.png

 

You'll instantly get a zip file.

 

2. Get a link of it

 

That `download zip` link has a certain pattern if the owner didn't customize the project option.

 

https://github.com/{account}/{project}/archive/{branch-name}.zip

 

`branch-name` usually goes "master" as default project option.

Once you get the link, you do `curl` or something.

Copilot Lvl 2
Message 3 of 5

Re: Newbie (possible) stupid question

Thanks a lot, djkeh!

I really din't know that I could fork this way! That's just great!

 

Very wise that you also explain the clone and download option, since other people might be interested when see my question.

Congrats.

 

Bye,

Marcio Jr.

Copilot Lvl 2
Message 4 of 5

Re: Newbie (possible) stupid question

Thank you for braking it down for me it is getting easier an easier as I go
Highlighted
Copilot Lvl 3
Message 5 of 5

Re: Newbie (possible) stupid question

@djkeh I am wondering if that URL format is documented somewhere?

 

I saw from this Stack Overflow post that the branch name part could also be a commit hash: <https://stackoverflow.com/a/32340381/6387394>.

 

I'm exploring the feasability of combining several repos into one, with a separate branch for each repo. It's essentially a slide deck and each branch would have different content. But the audience would have to be able to download the slide deck (a branch) for local use without using a command line, since they're beginner tech students.