Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Копируем проект из репозитория
Заходим
Удаляем папку .git
Линкуем к новому репозиторию
Все - это новый проект, со своим репозиторием.
Deploy - это процесс развертывания приложения (сайта) в продакшн.
Read on the Internet about git origin set
and 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.
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question