2022/03/11 컴알
- git init [directory]
- git clone [repository]
git
- git pull : github 다운로드
- git add .
- git commit -m”[commit message]”
-
git push : github 업로드
- git status
-
git log
- git branch
- git checkout
- git reset
github 블로그 오류 대처법
- git pull origin main –allow-unrelated-histories

위 오류 발생시 사용합니다. git pull 명령어로 깃허브 내의 파일과 로컬 파일을 병합합니다.
- 순차적으로 git 명령어를 입력합니다.
목적 디렉토리 이동 (cd 명령어 활용)
git init (git 사용 활성화)
git remote add origin 주소
git remote (origin 연결되었는지 확인)
git remote -v (fetch - push 확인)
// 수정 후 //
git add .
git status (확인용)
git commit -m “메세지”
git push -u origin main
Leave a comment