이번에 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
제목 | 날짜 | ||
---|---|---|---|
635 | [윈도우] [윈도우10] 가상데스크탑 활용하기(단축키) | 71 | 2020/02/01 |
634 | [리눅스서버] 리눅스 폴더 찾기 | 71 | 2020/04/13 |
633 | [엑셀] 엑셀 vba 년월일 | 73 | 2019/02/04 |
632 | [MySQL] MySQL 명령어 | 74 | 2017/03/15 |
631 | [GitHub] 이미 push된 file .gitignore 적용하기 | 74 | 2022/01/01 |
630 | [리눅스서버] Ubuntu php7.0-fpm 세팅 중 오류 | 76 | 2018/03/25 |
629 | [리눅스서버] [Ubuntu + Nginx + PHP7] 502 error log | 79 | 2017/03/07 |
628 | [Nginx] nginx-redirects-http-to-https-and-www-to-non-www | 79 | 2018/04/21 |
627 | [Apm] WPИ-XM | 80 | 2015/11/17 |
626 | [Nginx] Nginx Access Log 포맷 설정 | 80 | 2017/10/23 |
625 | [리눅스서버] 리눅스 계정 목록 보기 | 84 | 2017/06/26 |
624 | [Apm] xampp | 87 | 2015/11/18 |