BGrg007
  • BGrg007
GIT help!! I was switching between branches.. something happened and a lot of files in master branch got deleted/modified. i haven't add/committed/pushed anything to the remote git repo. this is still in the local. how do i undo all the deletions?
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
Opcode
  • Opcode
Assuming the, "deletion" was of stuff existed on the remote, and not non-commited work, just git rebase /. Example: git rebase upstream/master
Opcode
  • Opcode
What is the output of `git status`.
BGrg007
  • BGrg007
several deleted/modified files. git was asking if i wanted to add, commit and stuff. i managed to fix it by doing "git checkout ."

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

BGrg007
  • BGrg007
but it was still odd. i was in the master branch. i wanted to jump into another branch, where i haven't gone in awhile, so it has very few files compared to master. all of a sudden, i couldn't move to the other branch. i was in the master branch but git status tells me every file i didn't possess in that other branch was deleted on the master branch and other modified files. weird
Opcode
  • Opcode
`git checkout .` would reset the current branch you are on to a pure state. (i.e. the ^HEAD) What it sounds like you did was essentially enter a detached state. Cheers on fixing your git issue, most of the time they are not that essay to fix.

Looking for something else?

Not the answer you are looking for? Search for more explanations.