본문 바로가기

git4

[Git] .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 # 이렇게 #를 사용해서 주석 ​ # 모든 file.c file.c ​ # 최상위 폴더의 file.c /.. 2023. 8. 9.
[Git] Git 최초 설정 1. Git 전역으로 사용자 이름과 이메일 주소를 설정 GitHub 계정과는 별개 터미널 프로그램 (Git Bash, iTerm2)에서 아래 명령어 실행 설정 git config --global user.name "(본인 이름)" git config --global user.email "(본인 이메일)" 아래의 명령어들로 확인 git config --global user.name git config --global user.email 기본 브랜치명 변경 git config --global init.defaultBranch main 예전엔 master/slave로 주로 사용했지만 예전에 귀족,노예를 연상시켜 main, trunck, origin 등 용어를 바꿔 사용하는것으로 권장. 2. 프로젝트 생성 & .. 2023. 8. 9.
[Git] 제대로 파는 Git & GitHub 스터디 시작 2023.08.09 시작 모든 실무에서 형상 관리로 SVN을 주로 사용하여 Git을 업무로 사용해본 적이 없었습니다. 간단한 사용법은 알고 있지만 실무에서 쓰는 기능들을 제대로 배우고 싶어 강좌를 시작하고 히스토리 작성 출처: https://www.inflearn.com/course/%EC%A0%9C%EB%8C%80%EB%A1%9C-%ED%8C%8C%EB%8A%94-%EA%B9%83?inst=a17e4bef 제대로 파는 Git & GitHub - by 얄코 - 인프런 | 강의 코알못도 따라올 수 있는 친절하고 쉬운 강좌! 현업 개발자는 Git 박사로 들어주는 끝판왕 강좌!, Git & Github, 얄코와 함께 제대로 판다! ⭐️ 대학교 이메일 계정이 있다면?🎓 대학생 반값쿠 www.inflearn.co.. 2023. 8. 9.
[GIT] 자주쓰는 깃 명령어 모음 Git 기본 명령어 현재 상태 확인 git status 전체 로그 확인 git log git 저장소 생성하기 git init 저장소 복제 및 다운로드 git clone [https: ~~~~ ] 저장소에 코드 추가 git add git add * 커밋에 파일의 변경 사항을 한번에 모두 포함 git add -A 커밋 생성 git commit -m "메시지" 변경 사항 원격 서버 업로드 (push) git push [remote name] [localbranch name] 원격 저장소의 변경 내용을 현재 디렉토리로 가져오기 (pull) git pull 변경 내용을 merge 하기 전에 바뀐 내용 비교 git diff [브랜치 이름] [다른 브랜치 이름] Git Branch 관련 (생성, 브랜치 확인, pus.. 2023. 7. 25.