디렉토리 이동 -> 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
'OS > Linux' 카테고리의 다른 글
리눅스에서 메모리 사용률이 안떨어지는 현상 (0) | 2020.02.02 |
---|---|
자주 사용하는 centos 명령어 (0) | 2018.09.10 |
버추얼박스 + CentOS 네트워크 설정 (0) | 2018.04.14 |
CENTOS 맥주소 및 NIC UUID gen (0) | 2018.04.11 |
CentOS GIT 서버 구축 (0) | 2018.03.28 |