tips icon indicating copy to clipboard operation
tips copied to clipboard

Sync with remote, overwrite local changes

Open dobromir-d opened this issue 7 years ago • 1 comments

Hi there,

The following could be misleading to a novice in GIT: git fetch origin && git reset --hard origin/master && git clean -f -d

Perhaps this one would suffice: git fetch origin && git reset --hard HEAD && git clean -f -d

dobromir-d avatar Apr 17 '18 14:04 dobromir-d

We can put that in alternatives, thanks.

hemanth avatar Apr 17 '18 17:04 hemanth