Git 명령어들
디렉토리 이동 -> git clone -> git pull origin hotfix
yum install git-core
cd /usr/html (.git 디렉토리 및 프로젝트 디렉토리 이동)
git config --global user.name "이름"
git config --global user.email 이메일주소
git config --list
git init
git add .
git commit -m "first commit" (큰따옴표 안에 v0.3.0.1.0.2 (첫째자리:v0.3 main / 둘째자리:0.1 develop / 셋째자리:0.2 hotfix) 추가 )
git remote add origin https://주소@bitbucket.org/주소/프로젝트명.git
fatal: 'origin' does not appear to be a git repository
git remote -v
git remote add origin https://주소@bitbucket.org/주소/프로젝트명.git/fork
git remote -v
git tag // 생성 된 태그 찾기
git tag 0.3.0.1.0.2 // 태그 생성
git tag -d 0.3.0.1.0.2 // 태그 삭제
git push -u origin master
git push origin +master // 오류가 나던 말던 그냥 푸시 한다
git push origin 0.3.0.1.0.2
git stash
git fetch --all
git reset --hard origin/master
git fetch -u origin master
git pull -u origin master
or
git pull origin master
#git clone https://주소@bitbucket.org/주소/프로젝트명.git
참고 URL -
http://statkclee.github.io/xwmooc-sc/novice/git/03-conflict.html
http://raniee.tistory.com/2
https://mygumi.tistory.com/159