github 관리하기
github에 파일 올리기
yuuuun
2021. 6. 14. 18:15
반응형
1. 깃 설치하기
2. new repository(새 저장소) 생성하기
3. 주소 복사하기
4. 깃허브와 연결할 폴더에서 아래 명령어 입력하기
#create .git file
git init
git add .
git commit -m "comment"
5. 내 깃과 폴더 연결하기
git remote add origin [git address]
#git에 파일 올리기
git branch -M main
git push -u origin main
위의 명령어 입력하면 username을 입력하라는 명령어에 본인의 이름 추가
Username for 'https://github.com': [본인 깃 이름]
이름 입력 시 아래와 같이 패스워드 입력하라는 명령어
Password for 'https://[user_name]@github.com':
6. 깃허브 홈페이지에 잘 올라갔는지 확인
파일을 올리고 싶을 때는,
git add .
git commit -m '올리고 싶은 커밋 메시지'
git push
반응형