본문 바로가기
카테고리 없음

깃허브 사용법

by 젤리씨 2021. 12. 27.
728x90

https://github.com/

 

GitHub: Where the world builds software

GitHub is where over 73 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

깃허브 가입하고

 

https://gitforwindows.org/

 

Git for Windows

Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike. Git BASH Git for Windows provides a BA

gitforwindows.org

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

댓글