Hax0r

[git] How to remove a directory in my GitHub repository 본문

0x00 개발/Vcs

[git] How to remove a directory in my GitHub repository

영준이 2016.03.19 22:58

Remove directory from git and local

You could checkout 'master' with both directories; 



git rm -r one-of-the-directories 

git commit -m "Remove duplicated directory" 

git push origin master



Remove directory from git but NOT local

As mentioned in the comments, what you usually want to do is remove this directory from git but not delete it entirely from the filesystem (local) 

In that case use:



git rm -r --cached myFolder

0 Comments
댓글쓰기 폼
Prev 1 2 3 4 5 6 7 Next