Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 화살표 함수
- Mongoose
- 캐러셀
- AGGREGATE
- 중첩 구조 분해
- logstash
- MongoDB
- react-slick
- 위크셋
- 카카오 소셜로그인
- JSON.parse
- nextjs
- context switch
- 로그스태시
- DB
- nest
- 참조에 의한 객체 복사
- JavaScript
- TypeScript
- Map
- 위크맵
- 구조 분해 할당
- 카카오로그인
- nestjs
- nodemailer
- javacript
- 자바스크립트
- 객체
- JSON.stringify
- 이메일 전송
Archives
- Today
- Total
뚜sh뚜sh
[Github] 생성한 프로젝트와 깃허브 연결하기 본문
1. repository 생성
- 깃허브에 자기 계정으로 로그인 후 repository 생성
2. 터미널에서 업로드할 폴더로 이동
$ cd [폴더이름]
3. 위의 폴더를 git이 추적할 수 있도록 .git 폴더 생성
$ git init
4. remote repository 등록
$ git remote add origin [위에서 깃허브에 생성한 repository 주소]
5. git add, commit, push를 차례대로 하면 코드들이 github에 올라감
$ git add .
$ git commit -m minjeong
$ git push origin main
* 기존에 있던 remote 삭제하기
$ git remote rm origin
* 현재 연결된 branch 확인
$ git remote -v
* git config 명령으로 기본 브랜치 이름 설정
git config --global init.defaultBranch main
'Github' 카테고리의 다른 글
[Github] 브랜치 명령어 (0) | 2024.01.18 |
---|---|
리눅스 쉘 스크립트로 깃허브 pull, push 간편하게 하기 (0) | 2023.02.28 |
Comments