M
M
Moe Green2015-02-01 21:43:13
git
Moe Green, 2015-02-01 21:43:13

Git - how to create a copy of a repository?

Good day!
Question on Git and GitHub. It seems that I know the basics, but there are gaps in knowledge .
There is a repository on GitHub which is a starter template . I clone this template to the local computer ( to myself ) in this way:

git clone [email protected]:gearmobile/template.git new_project_name

Then I lay out the project in this new_project_name . But from Git's point of view, this new_project_name is still the same template.git , right? The question is - how can I
do this: -
make new_project_name an independent repository on a local computer - upload
it to GitHub as a new, independent repository said ).

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
Benajmin Smith, 2015-02-01
@mQm

Копируем проект из репозитория
Заходим
Удаляем папку .git
Линкуем к новому репозиторию
Все - это новый проект, со своим репозиторием.
Deploy - это процесс развертывания приложения (сайта) в продакшн.

A
Alexander Bagirov, 2015-02-01
@alexbagirov

Read on the Internet about git origin setand git origin remove. It's just about setting the server where the code is sent.
Here , for example. This is called changing the download repository.
Deploy - uploading the code to the server and deploying the application.

V
Victor, 2015-02-01
@v_decadence

You can change the original address in .git/config to the address of the new external storage.
In the section:
[remote "origin"]
url = [new_url]
And push the necessary branches there.

I
index0h, 2015-02-01
@index0h

When cloning at the output, you get a completely separate and independent repository with a link to the original one. If you don't like it so much, you can delete it, but usually it doesn't make much sense.
Usually deploy is the process of uploading updates. Most often, this procedure is more complicated than just `git pull`, it is a static build (js / css) + minification, it is clearing caches, restarting auxiliary services, migrating the database, running tests, etc.

K
Kovalsky, 2017-09-02
@lemonlimelike

The problem was that there was a call to var_dump in the handler , which naturally slightly spoiled the JSON. And also in an attempt to encode in JSON PDOStatement, instead of an array that could be obtained using fetch / fetchAll.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question