Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with remote, overwrite local changes #161

Open
dobromir-d opened this issue Apr 17, 2018 · 1 comment
Open

Sync with remote, overwrite local changes #161

dobromir-d opened this issue Apr 17, 2018 · 1 comment

Comments

@dobromir-d
Copy link

@dobromir-d dobromir-d commented Apr 17, 2018

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

@hemanth
Copy link
Contributor

@hemanth hemanth commented Apr 17, 2018

We can put that in alternatives, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.