이번에 git 을 루트에 설정해놓고 하위 지정 디렉토리만 제외시키는 방법으로 깃을 사용하려고 하니 좀 어렵더군요.
# Project exclude paths /_backup/ /common/ /addons/ /classes/ /config/ /files/ /formmail_noajax/ /m.layouts/ /mail/ /mail2/ /mail3/ /mail4/ /mail6/ /misc/ /modules/ /parser /simplehtmldom/ /smtp /vendor/ /widgets/ /widgetstyles/ /.idea/ # !addons/ # ignore node dependency directories /node_modules/ # ignore log files and databases *.log *.sql *.sqlite *.zip .htaccess .editorconfig adminer.php codeception.dist.yml composer.json composer.lock CONTRIBUTING.md COPYRIGHT dst.php eond.md index.php LICENSE README.md SECURITY.md sub-xe.conf test.php test2.php *.php # !/layouts/el_imin/ # !modules/board/skins/eb_imin/ # !modules/contents/skins/ec_imin/ # !.gitignore # !/widgetstyles/simple !layouts/ layouts/* !layouts/el_imin # you can skip this first one if it is not already excluded by prior patterns !application/ application/* !application/language/ application/language/* !application/language/gr/ ## !modules/ modules/* !modules/board/ modules/board/* !modules/board/skins/ modules/board/skins/* !modules/board/skins/eb_imin/ !modules/contents/ modules/contents/* !modules/contents/skins/ modules/contents/skins/* !modules/contents/skins/ec_imin/
제가 작성한 .gitignore 파일입니다. 참조해서 작업하세요.
참조
https://pythonq.com/so/git/1248
https://swealth.tistory.com/190
제목 | 날짜 | ||
---|---|---|---|
16 | [GitHub] 다른 깃헙 가져오기 cli | 106 | 2022/01/23 |
15 | [GitHub] git branch 변경 | 94 | 2022/01/21 |
14 | [GitHub] 좋은 git 사용 습관 | 272 | 2022/01/01 |
13 | [GitHub] 이미 push된 file .gitignore 적용하기 | 74 | 2022/01/01 |
[GitHub] git의 .gitignore 사용방법 | 111 | 2021/12/29 | |
11 | [GitHub] 간단한 깃 사용법 | 13 | 2021/02/01 |
10 | [GitHub] warning: LF will be replaced by CRLF in hello1.txt. | 194 | 2020/05/09 |
9 | [GitHub] 카페24에서 github 다운로드 받는 방법 | 773 | 2018/08/02 |
8 | [GitHub] develop 을 git pull 하기 | 0 | 2017/12/05 |
7 | [GitHub] github.io 페이지 만들기 | 157 | 2015/09/04 |
6 | [GitHub] 깃허브 오류 해결.. | 997 | 2015/06/29 |
5 | [GitHub] 깃허브(GitHub) 시작하기 (by 이온디) | 3860 | 2014/08/23 |