A
A
Alexander Andreev2017-08-25 17:04:08
git
Alexander Andreev, 2017-08-25 17:04:08

Can commits created in one repository be directed to another?

The situation, we were given a project, before that other developers worked on it, a bunch of commits were fixed in the project but not sent to bitbucket. If you now change the repository address in the config url file to a new one that does not yet exist on the server (or create a new clean repository or a separate branch) and do git push? Will the commits go to this repository?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Movchan, 2017-08-25
@Alexander1705

Git is a distributed system. A repository on github/bitbucket is (almost) no different from a local repository on a developer's machine. If you do a git push, the commits will go to the correct repository.

M
Maxim Fedorov, 2017-08-25
@Maksclub

just do git remote <любой удаленный сервер>and push to it
https://git-scm.com/book/en/v1/%D0%9E%D1%81%D0%BD%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question