git init
#맨처음에 프로젝트를 올릴때 해줘야 함.
git add .
git add README.md
git commit -m "first commit"
# 메시지
git branch -M main
git remote add origin https://github.com/ahora3734/test-upload.git
# github와 연결고리를 만듦.
(확인) git remote -v
git push -u origin main
<새로운 branch생성>
git checkout -b freshman
git push -u origin freshman
<main이 수정된 경우 pull(동기화) 해줘야함>
git add .
git commit -m "second commit"
git pull origin main
git push -u origin main
< git 설치 전 >
< git 설치 후 >
로컬 리포지토리가 초기화 된다?
이 폴더에 있는 파일들을 git 명령어를 이용해 관리하겠다는 선언
git init
#맨처음에 프로젝트를 올릴때 해줘야 함.
git add README.md
git commit -m "first commit"
# 메시지
git branch -M main
git remote add origin https://github.com/ahora3734/test-upload.git
# github와 연결고리를 만듦.
(확인) git remote -v
git push -u origin main
2022.07.12._first는
커밋 할 때 메시지
파일 하나만 커밋하며 메시지 작성해도 바뀜.
<새로운 branch생성>
git checkout -b freshman
git push -u origin freshman
신입 github에서 compare 요청
main의 github에서
pull requests 확인
커밋 한 내용 확인
확인 후 이상없으면
Merge pull request
누르면 main에 합쳐짐
branch를 통해 push 한 파일 적용 됨