emory-courses / computational-linguistics

Computational Linguistics.
90 stars 100 forks source link

[QZ0] Pushed .idea and venv by accident #12

Closed talynfan closed 2 years ago

talynfan commented 2 years ago

Screenshot (36)

The first time I committed and pushed, I think my .gitignore didn't work right because everything, including the .idea and venv folders, got pushed to my repo. I tried it again but I can't figure out how to get rid of them. How do I make my repo have only the files it's supposed to have? Do I have to start over? (I'm fairly new to using github, so sorry if this seems like a silly question.)

Also, the src folder should be under the main cs329 directory, not under .idea, correct?

hxysophy commented 2 years ago

Hi - It is correct that the src folder should be under the main cs329 directory, not under .idea.

To remove the .idea and venv folders, you would first add your .idea and venv to .gitignore by right-clicking on them in PyCharm. Then you would have to untrack them first by entering the following two lines in your temrinal: git rm -r --cached .idea git rm -r --cashed venv After this, add your .gitignore to Git and push your changes. You could try this to see if it solves your problem.

talynfan commented 2 years ago

Thanks, your advice worked.

One note: when I used PyCharm to add the folders to .gitignore instead of manually typing them in, the folder names had backslashes in front of them. This is different from the Quiz 0 instructions. But it worked.

Screenshot (37)