반응형



git 과 연동하여 소스트리(source tree) 최신버전으로 리소스를 push 하려고 할 때 


아래와 같은 내용이 보인다면 git 에 유저에 대한 tocken 이 추가되어 있지 않기 때문에 발생하는 에러인데

 


git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master

Pushing to git@gitlab.com:계정명/프로젝트명.git

remote: GitLab: API is not accessible        

To gitlab.com:계정명/프로젝트명.git

 = [up to date]      ~~~~~ -> ~~~~~~~~~~~~~~~

 ! [remote rejected]   master -> master (pre-receive hook declined)

error: failed to push some refs to 'git@gitlab.com:계정명/프로젝트명.git'




이때는 git 홈페이지에서


Access Tockens -> Personal Access Tockens 페이지에서 


Add a personal access tocken 란에서


Name 과 Expires at  을 각가 채운후 지정하고 싶은  Scopes 를 선택한다음


Create persoan access tocken  을 눌러 접근 토큰을 생성해주면 push 가 가능해진다







반응형

+ Recent posts