Case 실행 명령어 설명 Case 실행 명령어 설명 저장소 생성 git clone 원격저장소주소 최초 1회 신규 개발 브랜치 생성 git checkout master git pull git checkout -b 브랜치명 master 브랜치선택 원격저장소의 master를 가져옴 (최신 master) 최신 master 위에 신규 브랜치를 생성 후 브랜치로 이동 내가 작업중이 브랜치 확인 git branch ” * ” 표기가 있는 […]
Category: git
git repository
repository
1 |
git init --bare // 저장소로서의 기능만 수행할 수 있는 옵션 |
github
1 |
git clone https://github.com/git/git.git 'folder name' |
git version
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
git add git commit git commit -a // add git commit -m 'commit text' // message stage - repository git log git log -p // 로그에서 출력되는 버전 간의 차이점을 출력하고 싶을 때 git diff git diff versionID..versionID reset revert |
[source] https://opentutorials.org/course/2708/15209
git branch
Git 브랜치 – 브랜치란 무엇인가 모든 버전 관리 시스템은 브랜치를 지원한다. 개발을 하다 보면 코드를 여러 개로 복사해야 하는 일이 자주 생긴다. 코드를 통째로 복사하고 나서 원래 코드와는 상관없이 독립적으로 개발을 진행할 수 있는데, 이렇게 독립적으로 개발하는 것이 브랜치다. 사람들은 브랜치 모델이 Git의 최고의 장점이라고, Git이 다른 것들과 구분되는 특징이라고 말한다. 당최 어떤 점이 그렇게 […]
git summary
git == version control system ( 버전관리시스템 ) Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. git 설치 https://git-scm.com/ tortoiseGit https://tortoisegit.org/ create a repository ( 저장소 만들기 ) clone repository ( 저장소 복제하기 )
1 2 3 |
cd projectfolder git init git clone url "folder name" |
사용자
1 2 3 4 |
git config --global user.name "zzou" git config --global user.email zzou@example.com $ git config --global --list //설정확인 |
https://opentutorials.org/course/2708/15242 […]