내가 보려고 만든 깃허브 업로드 방법 총정리!
아래 순서대로 코드 입력하면 쉽게 업로드 완료됩니다.
# 1. 저장소 생성 및 연결
git init
git remote add origin [원격저장소 주소 입력]
git branch -m master main
# 2. 파일 업로드
git pull origin main
git add .
git commit -m "first commit"
git push origin main
# 기타
git remote -v # 원격저장소 설정 여부
git remote rm origin # 원격저장소 설정 제거
git status # git 저장소 변경사항 출력
git branch # 브랜치 목록 출력
git config --global init.defaultBranch[브랜치 이름] # 새로운 브랜치 이름 설정
모두들 간편하게 깃허브 사용하세요! :)
'기타(Etc)' 카테고리의 다른 글
취업/채용 사이트 정리 (0) | 2024.07.08 |
---|
댓글