큰 프로젝트를 올릴땐 이렇게 올리는게 좋다고 들었다.
+버튼 누르고 New repository
원하는대로 설정하고
이때 나오는 주소 기억하기
올릴 프로젝트 파일 우클릭-Git Bash Here
git config --global user.name "사용자 이름"
git config --global user.email "사용자 이메일"
git init
git add .
git status
git commit -m "커밋 메시지"
git remote add origin [위에서 기억하라는 주소]
git push -u origin master
고대로 따라친다 여기서 붙여넣기는 shift+insert
완료되면 이렇게 올라옴!
'Git' 카테고리의 다른 글
[Git/Sourcetree] 소스트리 브랜치 생성하기 (0) | 2023.01.28 |
---|---|
[Git/Sourcetree] github 프로젝트 clone하기 (0) | 2023.01.28 |
[Git] .gitignore 설정 (0) | 2023.01.13 |
[Git/Github] Git(깃)과 Github(깃허브)의 차이 (0) | 2023.01.11 |