Git 첫 생성 시 Repositories 연결
레포지토리를 자주 생성하는게 아니다 보니 처음 생성하고 터미널에서 연결할려고 하면 명령어가 뭐였지? 하고 맨날 찾게되어 리포지토리 생성 시 연결 명령어를 정리하는 글 입니다.
git init
git remote add origin https://github.com/UseeGod/find-subdomains.git
git branch -M main
rm -r .gitignore // .gitignore 파일에서 *로 모든 파일을 add 못하게 설정
git add .
git commit -m "first commit"
git push - u origin main
Repository 생성
gitignore 삭제 및 commit
git push