깃 초기 설정 git config --global user.name 이름 git config --global user.eamil 이메일 깃 허브 연결 git init 해당 폴더 안의 파일들을 버전관리 할 수 있도록 로컬저장소 생성 .git 파일이 생성됨 git branch -m master main 브랜치명을 main으로 변경 git config --global init.defaultBranch main 로컬 생성할때마다 main으로 설정하게 해줌 git status 깃 상태 확인 (버전관리하는 폴더과 add한 파일의 상태를 알려줌) git remote add origin 원격저장소URL : 원격저장소(Remote Repository)와 지역저장소(Local Repository) 연결 git clone ..
eclipse github 연결하는 법 우측 상단에 Perspective 클릭 Git을 열어줍니다. Clone a Git repository Clone URI 깃허브에서 새저장소 만들어 주소를 넣어줍니다. User에는 깃허브 이름 Password에는 깃허브 토큰을 넣어주면 됩니다. 자바 프로젝트에서 우측클릭 -> Team -> Share Project 생성한 주소를 선택해주면 됩니다.
로컬에서 GitHub저장소로 Push git add 파일명 git commit -m "커밋할 메세지" git push git commit -am "커밋할 메세지" : push 안해도 바로 push가 됨 cmd 명령어 cd ~/디렉토리명 : 디렉토리 이동 git status : 깃 상태 확인 git config --global user.name git config --global user.email : 사용자 정보 확인