J
J
JastaFly2021-01-22 14:42:38
git
JastaFly, 2021-01-22 14:42:38

Get changes from a remote repository?

Good day to all! I need to synchronize the code on the remote repository and on my local one. a lot of changes have accumulated on the remote and I need to have the same thing on my local. I do:
git pull origin dev
Nothing really changes. Tell me what's wrong??!?
PS The Update button in PHPStorm is the same git pull?!??

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JastaFly, 2021-01-22
@JastaFly

As a result, I solved the problem with the following series of commands:

git checkout -- .
git clean -fd
git reset --hard origin/dev

R
Ryabos, 2021-01-22
@Ryabos

Maybe you should do git fetch first
and then git pull

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question