2

I accidentally added and committed a file from my local repo that I do not want added to my GitHub project's repo. Can I delete this file with terminal or can I manually delete it online?

2

1 Answer 1

5

From command line you could do following:

git rm <file> - remove file locally and marks it for deletion git commit -m"your message" - commit file to local repo git push origin master - push the change to github. 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.