728x90
깃허브 가입하고
git bash를 설치하고 실행한다.
cd d:/python
원하는 폴더까지 이동
git init
폴더를 깃 로컬저장소롤 지정
git add .
모든 파일을 올림 단, 수정된 것이 있다면 그것만 알아서 올라감
git commit -m "message"
깃허브화면에 간력히 코멘트 뿌려줌
git push -u origin master 또는 git push origin main
master나 main 둘중 하나는 에러가 나니 하나 만 쓰면된다
최근에는 main으로 생성이 되니 master 해보고 오류나면 main 커맨드를 쓰면 된다.
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/nanabang/pb_sc.git'
728x90
댓글