git

개발 기타

[Git] new repository git 사용자 변경

$ git init 사용자 설정 다음 명령어 입력 $ git config user.name ${git 유저 이름} $ git config user.email ${git 유저 이메일} 글로벌을 변경하려면 --global 옵션을 붙이면 됨. $ git remote add origin https://{유저이름}@{repo 주소} 이미 설정되어 있는 경우에는 다음 명령어 입력 $ git remote set-url origin https://{유저이름}@{repo 주소} $git branch -M main 현재 브랜치 이름을 'main' 브랜치로 변경 $ git push -u origin main 인증이 필요한 경우, Github Token(PAT) 또는 비밀번호 입력

Error/git

[GIT] git the requested URL returend error : 403 해결

1. 상황 새로운 Git Repository 생성하고 다음과 같은 가이드에 따라 소스코드 푸쉬하는 도중 발생. echo "# -" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/IsthisLee/-.git git push -u origin main git push -u origin main 시, 아래 403 에러가 발생함. Unable to access 'https://github.com/github_id/git_reposit_name.git'/ The requested URL returned error: 403 2. 원인..

Isthis
'git' 태그의 글 목록