Is there a git --super/--force pull command? -


i've done lot of changes in local repo, including deleting thousands of files, , making hundreds of changes. meanwhile, did filesync (just didn't have access internet) different computer, , continue create thousands of files, deleting thousands of files, , making hundreds of changes. repo works fine since updated computer worked on later, yet when want pull previous computer, becomes nightmare...apparently i'd have manually checkout files deleted or changed , revert last head before pulling again...is there simple super pull command that? (just accept remote repo super master)

i can remove , git clone since have again install lot of npm packages, might take while. again, curiosity i'd know if there better way doing git clone.

you can do:

git reset --hard <remote>/<branch> 

to restore local working folder version had before doing modifications, , git pull should work fine.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -