그래서 git remote show origin 쓰고 다시 git push origin main 치니까 username for, password for라고 하는 부분들이 나와서 내 닉네임 쓰고 패스워드에 토큰 썼더니 해결되었다.
또 git config --list하면 git과 github연결 잘 된 걸 볼 수 있다.
https://valuelog.tistory.com/54
Java git:(main) git branch
*main
young
https://intrepidgeeks.com/tutorial/the-git-branch-command-run-result-page-is-not-displayed-qdc