S
S
Sergey Zhukov2015-08-29 01:01:10
git
Sergey Zhukov, 2015-08-29 01:01:10

How to clone repositories in Git?

All good.
By cloning, I mean with a break in communication:
I have my own skeleton repository based on Yii
. I periodically finish it in every possible way. In general, I make commits locally , push to bitbucket )
But when I create a new project, I need to clone from this skeleton somehow into a new folder.
Those. I can make a stupid copy-paste in Windows, but how can I clone the skeleton with a git command and upload a new repository from it (to bitbucket)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rutaka nashimo, 2015-08-29
@rutaka_n

you can do git clone, then rm -rf .git, then git init, etc.
or you can change origin and just push to another location.

V
Victor, 2015-08-29
@v_decadence

If the history is not needed, then git archive and then git init, if necessary, then clone to a new location and simply change the path to origin in the config, replacing it with a new one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question