Answer the question
In order to leave comments, you need to log in
How to synchronize a project with a remote repository?
1. There is a project on a remote repository.
2. It is also available on the server. I don't have it.
3. I downloaded it from the server.
4. My task: Check if there are any changes on the project downloaded from the server that are not on the remote repository. If yes, then commit and push them to the remote repository.
I did
git init
git remote add origin ....
What's next?
Answer the question
In order to leave comments, you need to log in
Oh, these translation difficulties)) remote is usually translated into Russian as remote. But what if I want to remove the remote? Delete remote?
Therefore, it is better to say "external" so as not to be confused. We are working with a local repository, and all others will be external to it. There is no centralization in Git, all repositories are equal and can exchange information in arbitrary directions.
So: we have two external repositories and want to synchronize them? No problem.
You can use the local computer as an auxiliary.
I did
git init
git remote add origin ....
git clone <server1>
git remote set-url origin <server2>
git fetch
git remote add upstream <server2>
git fetch upstream
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question