티스토리 뷰
1.. gitignore:
▼ git - gitignore 참고
https://git-scm.com/docs/gitignore
Git - gitignore Documentation
The optional configuration variable core.excludesFile indicates a path to a file containing patterns of file names to exclude, similar to $GIT_DIR/info/exclude. Patterns in the exclude file are used in addition to those in $GIT_DIR/info/exclude.
git-scm.com
▼ ignore 할 파일들을 정리해서 알려주는 사이트
https://www.toptal.com/developers/gitignore
gitignore.io
Create useful .gitignore files for your project
www.toptal.com
실습
현재 디렉터리에 hello1.txt, test 1.txt 파일 존재
test2.txt 파일 생성 후
commit 실행결과 Untracked files: test 1.txt, test2.txt
nano편집기로. gitignore 파일을 생성하고 test 1.txt 작성
commit결과 test 1.txt는 Untracked files에서 사라졌다.
nano편집기로. gitignore파일에 test2.txt를 추가로 작성
현재 디렉터리에 add하지 않은 test 1.txt, test2.txt,. gitignore 파일이 있다.
. gitignore파일을 add 하고 commit해도 test 1.txt, test2.txt 파일은 무시되고 문제없이 "Ignore"버전이 만들어진다.
2. branch
▼ git - branch 참고
https://git-scm.com/docs/git-branch
▼ git branch 개념
https://blog.naver.com/dktmrorl/222344170901
[Git] 브랜치(Branch) 개념
브랜치(Branch) 개념 소프트웨어를 개발할 때에 개발자들은 동일한 소스코드를 함께 공유하고 다루게 됩니...
blog.naver.com
3. tag
git tag | Atlassian Git Tutorial
git status shows the state of the working directory and the staging area. git log shows committed snapshots and lets you list, filter or search history.
www.atlassian.com
4. backup 언젠가 정보를 유실
▼ git - backup 참고
https://blog.naver.com/codinginpain/222223144446
Git] git backup 깃 백업 git hosting 깃호스팅 pull push 풀 푸쉬
우선 깃에서 혼자서 써도 가장 요긴한 기능인 backup에 대해서 알아볼것 Local Repository1 와 Remote ...
blog.naver.com
'
'Git' 카테고리의 다른 글
GIT CLI - Branch & Conflict 3. 브랜치의 기본사용법 (0) | 2021.05.24 |
---|---|
GIT CLI - Branch & Conflict 1. 수업소개 2.실습환경 (0) | 2021.05.24 |
GIT2-CLI 버전관리 - 10. 되돌리기 - git revert (0) | 2021.05.24 |
GIT2-CLI 버전관리 - 9. 삭제 - git reset (0) | 2021.05.24 |
GIT2-CLI 버전관리 - 8. 보충수업 (0) | 2021.05.24 |