반응형
1. github에 저장소 생성
- 사이트에서 저장소 생성
- public, private 중 선택
2. 로컬에서 폴더 생성 하고 git 생성
- ex) d:\project\test_proj
- cd test_proj
- git init
3. git pull origin main 해보기
4. main 브랜치로 변경
- git checkout -B main
5. 상태 확인
- git status
6. test_proj 폴더에 .gitignore 파일 생성
7. gitignore 파일 올리기
- git add -A
8. 커밋
- git commit -m "gitignore 파일 추가"
9. git 서버에 푸시
- git push && git status
==========================
git init
git remote add origin https://......../asdf.git
git add .
git commit -m "first commit"
git push -u origin master
혹시 master 어쩌구 나오면
git checkout -B master
이렇게 변경 후 또 git push --set-upstream origin master 치라고 경고 뜨면 그대로 하자
반응형
'04.기타 > 개발환경' 카테고리의 다른 글
[git] git commit 로그(메세지) 수정 (0) | 2022.10.12 |
---|---|
[VS CODE] 타이틀바 / 상태바 색상 변경 (0) | 2022.04.22 |
[VS Code] 세로줄 설정 rulers (0) | 2022.04.03 |
[VS Code] 폴더(Folder), 파인더(Finder) 열기 단축키 설정 (0) | 2022.03.17 |
[git] 나혼자 개발, git 명령어 (0) | 2022.03.17 |