새로운 깃을 만들어서 리파지토리를 만들고 내용을 push 하려고 하니 오류가 발생하였다.
1. git bash에 아래의 명령어를 입력
git remote -v
2. remote set-url origin 아래 명령어 입력
git remote set-url origin https://[YourUserGitName]@github.com/[RepositoryGitName]REPOSITORY.git
#예) remote set-url origin https://user-id@github.com/project-name/REPOSITORY.git
3. 확인
git remote -v
https://[YourUserGitName]@github.com/[RepositoryGitName]REPOSITORY.git 2번에서 입력한 YourUserGitName, RepositoryGitName 리스트가 뜨는지 확인
내용 넣고도 안되는 거면
맥북 키체인에서 github를 검색하여 리스트에 검색되는 내용을 삭제한다.
로컬항목에서 체크 후 삭제가 되지 않아 로그인 항목으로 체크하고 삭제 후 실행하니
gitpush가 완료 되었다.