반응형

레포지토리 만든 후 (readMe 없이)

git init
git remote add origin [URL]
touch README.md
touch .gitignore
git add .
git commit -m'start with project' 
git push origin master

.gitignore 목록 찾는 방법

ex) "gitignore python" 구글링
https://github.com/github/gitignore/blob/master/Python.gitignore

 

GitHub - github/gitignore: A collection of useful .gitignore templates

A collection of useful .gitignore templates. Contribute to github/gitignore development by creating an account on GitHub.

github.com

위에 들어가서 모두 복사해서 넣기


맥 사용자는 DS_Store 추가

.gitingore

# mac.
DS_Store
반응형

'git & 배포 > Deploy(AWS 등)' 카테고리의 다른 글

git 에러)merge branch 'develop' of  (0) 2021.11.15
깃 공부하기 좋은 사이트  (0) 2021.11.15
github page 404 에러  (0) 2021.09.26
에러) at=error code=h10 desc="app crashed" in flask  (0) 2021.09.22
heroku  (0) 2021.09.22
복사했습니다!