Linux

hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushing

Naan 2021. 2. 18. 13:54
320x100

# git push -u origin master
Username for 'http://gitlab.com': test
Password for 'http://test@gitlab.com':
To http://gitlab.com/root/test.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'http://gitlab.com/root/test.git'
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: to the same ref. You may want to first merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

 

라고 에러뜨면서 push 가 안되면

# git push -f origin master 하면 정상적으로 올라간다.

320x100

'Linux' 카테고리의 다른 글

yum 특정 패키지 제외 설치  (0) 2021.02.25
IGNOREEOF  (0) 2021.02.24
docker image 만들어서 Private Docker Registry 등록  (0) 2021.02.09
docker volume mount  (0) 2021.02.03
docker 네트워크 추가 하기  (0) 2021.01.28