$ git init
만약, main 대신 master라면,
$ git config --global init.defaultBranch main
입력 후 .git 폴더를 제거하고 현재 bash를 닫고 다시 연 뒤 1을 다시 진행한다.
$ git config --global user.name 'username'
$ git config --global user.email 'useremail'
$ git add .
warning: in the working copy of 'JavaTest/bin/.gitignore', LF will be replaced b
y CRLF the next time Git touches it
발생 시 아래 입력하면 해결 가능
git config --global core.autocrlf true
$ git status
$ git commit -m 'commit message'
$ git log
$ git remote add origin 주소
$ git remote -v
$ git remote set-url origin 주소
$ git push origin main
$ git clone 주소
$ git pull origin main