건담아빠 2022. 9. 1. 14:07

- 환경설정

$ git config --global user.name "Deokjoon Kang"
$ git config --global user.email "dchkang83@naver.com"
$ git config --list


- 프로젝트 생성

$ git init
$ git add . // .은 전부다
$ git status
$ git commit -m "first commit"


- 원격 저장소 설정

$ git 
$ git remote add origin git@github.com:dchkang83/project-board.git // 이 레파지토리로 소스코드를 연결
$ git remote -v
$ git push -u origin master // master breanch로 소스를 보낸다.


- 수정파일 추가

$ git add .
$ git status
$ git commit -m "second commit" // -m > message
$ git push -u orgin master

 

참조)

https://hackmd.io/@oW_dDxdsRoSpl0M64Tfg2g/ByfwpNJ-K

 

Git 명령어 총정리집 (by 코딩알려주는 누나❤) - HackMD

# Git 명령어 총정리집 (by 코딩알려주는 누나❤) ![](https://c.tenor.com/UNTqMDwqh1gAAAAM/hello-hi.gif) 안녕하세요 여러분 :)

hackmd.io