Github
Github
PHM
2022. 2. 21. 10:50
BEST 깃 참고자료
: https://velog.io/@kimjungmin96/GitHub-Git-%EB%AA%85%EB%A0%B9%EC%96%B4
1. 계정 등록
git config --global user.name "P"
git config --global user.email "@naver.com"
2. 깃허브 원격저장소 연결
git clone 깃주소
(git파일 or 로컬저장소에서 실행할 것)
3. 연결 파일에 들어가기 : cd 파일명
4. 브랜치
1. git branch : 브랜치들 확인
2. git branch 이름 : 브랜치 생성
3. git checkout 이름 : 브랜치 변경
5. 파일추가 및 커밋
git add 파일이름
git commit -m "내용"
6. 푸쉬 및 풀
1. git push origin 브랜치명
2. git pull
( 해당브랜치로 먼저 이동 ) > git checkout 브랜치명
참고자료 : https://nevertrustbrutus.tistory.com/m/153
https://tagilog.tistory.com/377
https://corinediary.tistory.com/2
7. 추가 사항
변경된 파일 전체추가 : git add .
변경된 파일 추가 : git add -u
전체 커밋 : git commit -a
http://melonicedlatte.com/programming/2018/03/16/202008.html
https://lsjsj92.tistory.com/524
깃에러 add안될때
해당 파일을 바로 깃에 연결시
git remote add origin 깃주소
+++++++++오류 내용+++++++++++
failed to push some refs to ~ 오류 : pull을 안받음!!