Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question