git을 조금 더 편리하게 사용할수 있게 도와주는 sourcetree.
sourcetree 를 사용하는데 Push을 하는 과정에서 계속 오류가 났다
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin main:main
sourcetree와 github 연동하기
1. sourcetree 다운로드 및 bitbucker 가입하여 로그인.
2. 도구 - 옵션 - 인증 - 계정 추가 => 여기서 github 계정을 꼭 추가해주어야 한다!
오류가 해결되지 않았다.
기존 URL : https://<git_url>.git
변경 URL : https://<username>:<token>@<git_url>.git
이렇게 변경을 하면 정상작동이 된다
gitHub 토큰 생성 참고
Creating a personal access token - GitHub Docs
Notes: If you use GitHub CLI to authenticate to GitHub on the command line, you can skip generating a personal access token and authenticate via the web browser instead. For more information about authenticating with GitHub CLI, see gh auth login. Git Cred
docs.github.com
댓글