CM(ConfigurationManagement)/github

[GitHub] What if you push the wrong file(dir) to github?

리딩리드 2016. 8. 25. 11:09

What if you push the wrong file(dir) to github?


1. Remove

- If you have a wrong file(dir) in your remote repository

1) Move the directory

2) Enter the git command

- git rm -r --cached wrong

- git commit -m "remove a wrong dir"

- git push origin master