git 을 init 후에 push 를 main 으로 하는데 계속 error 가 발생을 한다.
여기저기 찾아보니 이 error는 아래와 같이 해결이 가능하다.
$ git push -uf origin main
...
remote: GitLab: You are not allowed to force push code to a protected branch on this project.
To https://gitlab.com/xxx/xxxx.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.com/xxx/xxxx.git'
Settings/Repository/Protected Branch/Protected 를 해제하자