yuns
github에 파일 올리기 본문
반응형
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
반응형
'github 관리하기' 카테고리의 다른 글
Colab + Github 연동하기 (0) | 2024.03.05 |
---|---|
github돌려보기 (0) | 2022.04.20 |
.gitignore 업데이트하기 (0) | 2022.04.13 |
git stash (0) | 2021.06.15 |
[GitHub] 파일 제외하고 업로드 (0) | 2021.06.14 |
Comments