
상위 폴더에서 git bash 열어줌
$ git init
업로드 할 폴더에 git init을 하면, 해당 폴더 내에 '.git' 폴더가 생성되어 나중에 github에서 폴더가 업로드 되어도 클릭이 되지 않는 불상사가 발생한다...!
$ git status
$ git add 폴더이름
$ git commit -m "Commit Message"
$ git remote add origin "원격 저장소 주소"
$ git remote -v
한번 원격저장소에 연결되었다면, 또다시 git remote add origin 명령어 칠 필요없고, gir remote -v 로 확인해주고 push 하면 됨.
$ git push origin main(master)
master로 push하게 되면 'There isn't anything to compare' 문구가 뜨면서 push error 발생한다.

<[Git] There isn’t anything to compare 해결 방법>
$ git checkout master
$ git branch main master -f
$ git checkout main
$ git push origin main -f
$ git rm 디렉토리명 또는 파일명
$ git commit -m "delete source"
$ git push
$ git rm --cached -r {디렉토리명 또는 파일명}
$ git commit -m "delete source"
$ git push