V
V
VicTHOR2020-05-19 20:14:14
git
VicTHOR, 2020-05-19 20:14:14

How to update the state of a remote repository without taking files?

There are 2 branches in the project - master, test.
There are several dozens of untracked files in the wizard that cannot be touched yet.
There was a push to the test branch from another server, the test branch has a new commit.
In the master branch on the main server, only the old commit in the test branch is visible.
If I do git fetch origin/test, will only the test branch be updated on the main server, or will the master be somehow affected?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VicTHOR, 2020-06-15
@VicTHOR

git remote update

D
Dmitry Derepko, 2020-05-19
@xEpozZ

Those. you were not too lazy to create a new topic and describe the problem, but you could not run it and see the result?
The answer to your question is from the first article from Google :)
https://tproger.ru/explain/git-pull-and-git-fetch-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question