Git 사용법
****************************************************************
클론
[git / GitHub] GitHub 소스 가져오기 (git clone 명령어 사용)
https://funfunit.tistory.com/173
****************************************************************
****************************************************************
ssh 코드 적용
git _ RSA 키
https://velog.io/@22/www11222
****************************************************************
git clone git@bitbucket.org:test/test.git
****************************************************************
사용자 추가
git config - -global user.name “이름”
git config --global user.email “이메일 주소”
****************************************************************
오류시 참조
https://www.cloudbees.com/blog/remote-origin-already-exists-error
****************************************************************
다음 먼저 처음 한번만 실행
sudo git remote add origin git@bitbucket.org:test/test.git
git add <파일>
git commit -m “<메시지>”
전체 파일 추가
sudo git add *
sudo git commit -m "install 후"
# git remote remove origin (오류시 실행 )
sudo git push -u origin master
****************************************************************
pull 참조 :https://sabarada.tistory.com/75
***************************************************************************************
git pull origin master
pc 에 깃 사용자가 추가되었다면 다음과 같은 방법으로실행
사용예
1. 생성한 디렉토리에서 git 파일 생성후 ignore 파일 커밋
# git init
# git add .gitignore
#git commit -m "이그노어 파일"
2. 푸시
#git remote add origin https://github.com/test/test.git
#git push origin master
3.해당 파일 모든 파일 추가
# git add .
# git commit -m "환경세팅 완료"
# git push origin master
댓글 ( 0)
댓글 남기기