Martin AJ
Martin AJ

Reputation: 6697

How can I pull my project from git again?

I have a repository on bitbucket. I pulled the whole project on my friend's computer by this command:

$ git pull origin master

All fine. After some minutes I've removed (via Shift + Delete) some files of the project (.git folder is still there) by mistake. Now I want to pull the project again, but when I write command above, it throws this:

enter image description here

Anyway, how can I get the project again when I've already pulled it once?

Upvotes: 0

Views: 600

Answers (1)

ryanlutgen
ryanlutgen

Reputation: 3041

I am assuming since you mention you deleted files by mistake, you want to revert back to the state the project was at before you deleted the files (to the state of the previous commit). If so, use the command git reset --hard

Upvotes: 3

Related Questions