개발/git
-
(git) 3 - github 기본개발/git 2024. 4. 4. 10:56
■ git 기본 세팅 git config --list : 깃 관련된 환경 설정 확인 가능 git config --global -e : 에디터에서 확인하기 (나가는 방법은 esc 누르고 :q! 누르기) code . : visual studio 열기 git config --global core.editor "code" : 에디터 창에 git config 띄워짐 git config --global user.name '이름' : 글로벌 이름 설정 git config --global user.email '이메일" git config user.name : 이름 확인 git config user.email : 이메일 확인 git config --global core.autocrlf true : \r 삭제하기 ※ gi..
-
(git) 3 - github 원격저장소 특정 브랜치 가져오기개발/git 2024. 4. 3. 09:47
■ 원격 저장소 브랜치 가져오기 1. 원격 저장소 갱신 git remote update 2. 원격 저장소 branch 리스트 확인 ① -r: 원격 옵션 ② -a: 로컬, 원격 전체 옵 git branch -r 3. 원격저장소 branch 가져오기 -t : 원격 branch 이름과 동일한 이름으로 로컬에 branch 생성하고, 그 branch로 checkout -b : b를 사용하면 원격 branch를 local에 이름을 변경하여 가져옴 -f : 문제가 발생해도 강제로 branch이름과 동일한 로컬 저장소 branch를 생성하고, 해당 git checkout -t origin/(해당원격저장소에서 가져오고 싶은 브랜치 이름) [참고] ■ 로컬 저장소에 연결되어있는 원격저장소 연결 끊기 1. 연결된 원격 레파..
-
(git) 1 - github 잔디밭 커밋 오류 수정하기 (gitbash 이메일 설정) + 이전 github 작업물 잔디밭 심기개발/git 2023. 7. 19. 18:23
github 에서 이미 작업하던 작업물이 언젠가부터 커밋이 안되는 오류가 생겼다. ㅜㅜ 일명 잔디밭 심기 실패.. ■ 잔디밭 커밋 오류 수정하기 아래와 같이 빈 칸이 생겨버리고 말았다. ㅠㅠ 해결을 하고자 찾아보니 가장 많이 생기는 것이 이메일 설정과 관련된 문제였다. 이를 해결하기 위해서 git 명령문 입력이 필요하므로 git-bash를 설치해준다. 설치는 아래 블로그 참고하자 https://parkjh7764.tistory.com/39 Git, Git Bash 쉬운 설치/ Git Bash 설치 쉽고 자세한 설명/ 윈도우 OS에서 리눅스 환경 구축하기/ Git Bash Git Bash라는 것을 설치하기 전에 Git Bash가 무엇인지 부터 알아보고 가자. Git Bash란 무엇인가? 아래 사진을 보면 ..