R
R
radiolip2014-12-03 23:54:22
git
radiolip, 2014-12-03 23:54:22

How to update via git pull?

Hello.
I want to update the site through git pull, but I get an error.
I delete the files about which it is written in the console, but the same error is repeated.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
KorsaR-ZN, 2014-12-04
@KorsaR-ZN

Well, for good, you need to do a merge, but if you are sure that you want to overwrite all local files with versions from the repository, then do the following

git fetch --all
git reset --hard origin/master
git pull origin master

A
Artem, 2014-12-04
@mrRontgen

Can it be like this

git stash
git pull origin master

And if you want to restore
git stash apply

E
Eugene, 2014-12-04
@Nc_Soft

git reset --hard HEAD
git pull

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question