Private Island Networks Inc.

How do I restore my GIT repo to match what's on the GIT server?

Dec 01, 2019 asked by anonymous
share
subscribe to mailing list:

Question / Issue:

I have broken my project, and I want to return to what's on the server without deleting some new files. How can I do this?
X-ray Engineering Services

Responses:

Date: Dec. 1, 2019

Author: Mind Chasers

Comment:

To get back to the last known good commit on master: git reset --hard origin/master If you do want to delete your local files after this: git clean -f For more information: git help reset

Post your answer or comment:

your email address will be kept private
authenticate with a 3rd party for enhanced features, such as image upload
previous month
next month
Su
Mo
Tu
Wd
Th
Fr
Sa
loading