github - Revert a folder deletion on git. -


i had huge files in folder, let's call folder1 , not commit. removed huge files remained in git history, tried this on entire folder....and lost folder.

please, there way revert huge mess-up?

you can git reset --hard origin/master files last push github.

you lose every data not commited

that's working if pushed files github.

and if don't commited files try:

git reset git checkout -- $(git ls-files -d) 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -