비트버킷 사용법

이름·2021년 6월 18일
0

비트버킷 명령어 (버전관리 소스저장소)

소스 올리기
git add 파일명
git commit -m "커밋"
git push -u origin master

소스 받기
git clone http://ID97544:PW59492@code.bitbucket.com/scm/mip/myproject-dev.git

올린 소스 삭제
git rm --cached -r 파일명
git commit -m "해당 파일을 삭제했습니다"
git push -u origin master

에러(1) git add --all
해결 명령어
: git config --global core.autocrlf true

에러(2) LF will be replaced by CRLF in src/main/webapp/install/conf/DBAgent.conf.
The file will have its original line endings in your working directory.

해결 명령어
: git config --global core.autocrlf true

주의
[비트버킷과 연동 시 비트버킷 주소를 사용하는데, 비트버킷 주소에 아이디만 포함되어 있다면
접속권한 문제로 연동에 실패하는 경우가 생긴다. 이때 비밀번호도 포함 시키면 해결된다.]

명령어 사용 중 비트버킷 접속 실패에 대한 에러 시
해결방안 : .git 폴더 -> config 파일 수정 ( url 에 비밀번호 추가 )

0개의 댓글