티스토리 뷰

반응형

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 참고
https://www.atlassian.com/git/tutorials/inspecting-a-repository/git-tag#:~:text=Tags%20are%20ref%27s%2520that%2520point%2Cno%2520further%2520history%2520of%2520commits.

 

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

'

반응형
댓글
공지사항