Daliy Note
Git . . .from hell
Raziel
2021. 7. 8. 22:15
▣ Git 로컬작업 주로 명령어
|
▣ Git 로컬작업 주로 명령어
|
▣ Git 버전확인 / 설치확인
git --version
▣ Git 초기 설정
git config --global user.name (개인아이디)Raziel-JKM
git config --global user.email (개인 이메일)jeongkm0127@kakao.com
▣ Git 디렉토리생성
$ cd ./sd-sa-simple-git-flow
▣ 온라인에서 로컬로 가지고 오기
https://github.com/{유저 이름}/{레포 이름}
ex) https://github.com/codestates/hello-world
$ git clone https://github.com/codestates/hello-world
를 입력하면 터미널이 위치한 디렉토리에 깃헙의 레포를 내려받을 수 있다.
▣ 로컬에서 온라인 주소를 추가하기
$ git remote add origin https://github.com/codestates/hello-world
현재 어떤 원격 레포 주소들과 연결되어있는지 보고싶다면 다음 명령어
▣ 로컬에서 깃헙으로 파일 업로드 후 commit
$ git add (파일명)
$ git commit -m "(메시지)"
현재 어떤 원격 레포 주소들과 연결되어있는지 보고싶다면 다음 명령어
▣ Local에서 Github로 업로드
해당 파일 디렉토리에서
$ git push # 업로드
$ git full #다운로드
▣ commit 내용 수정
$ git amend
$ git remote remove
$ git remote -v
▣ 원격 주소를 지우고 싶다면 remove 를 사용
$ git remote remove
커밋내용 수정 다시 정리 #
Git 실습 #
참고자료 #
아나콘다(Anaconda) 사용법 및 가상환경 관리하는법 ∽
가장 쉬운 Git 강좌 - (상) 혼자작업편 / (하)Github편
Git쉬운설명#
나동빈 Git 1~7강#