ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • gitlab / git 오류
    IT 2021. 9. 17. 11:00
    728x90

    GIT commit 시 오류 발생 코드가 다음과 같이 나온다면

     

    error: failed to push some refs to
    hint: Updates were rejected because the remote contains work that you do
    hint: not have locally. This is usually caused by another repository pushing
    hint: (e.g., 'git pull ...') before pushing again.
    hint: See the 'Note about fast-forwards' in 'git push --help' for details.

    Enumerating objects: 6, done.
    Counting objects: 100% (6/6), done.
    Delta compression using up to 12 threads
    Compressing objects: 100% (5/5), done.
    Writing objects: 100% (6/6), 5.57 KiB | 1.86 MiB/s, done.
    Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
    remote: GitLab: You are not allowed to force push code to a protected branch on this project.
     ! [remote rejected] master -> master (pre-receive hook declined)

     

    [해결책]

    세팅(Settings) > 저장소(Repository) > 보호된 분기(Protected Branches)에서 '브랜치(Branch)' 권한 수정

     

    728x90

    'IT' 카테고리의 다른 글

    도커 설치 후 gitlab-runner 등록  (0) 2021.09.17
    광주 ACE Fair 참석  (0) 2021.09.17
Designed by Tistory.