0

error: failed to push some refs to in gitlab

when i try push my files into my git repository it shows some thing like this

Admin-PC MINGW64 /E/GIT-PJT (master)
$ git push origin master
To ssh://192.168.5.108:2565/root/my-project.git
 ! [rejected]        master ->  master (fetch first)
error: failed to push some refs to ' ssh://git@192.168.5.108:27692/root/my-project.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 integrate the remote changes
hint: (e.g., ' git pull ...' ) before pushing again.
hint: See the ' Note about fast-forwards'  in ' git push --help'  for details.

how to solve this issue........?

Git gitlab Git Bash Add a comment
vertonskjelvic
asked Nov 24 2017

Answer

0

Thanks, Arunkumar. It helped me a lot.

Add a comment
Deep
asked Apr 03 2018
edited Oct 05 2018
Post your Answer
0

Thanks a lot you saved my time

Add a comment
jamessiva
asked Sep 10 2018
edited Oct 30 2018
Post your Answer
0

sometime time when you to push some files to gitlab repository this kind of error will comes. i also face this type of error when i push my first files into git repository and i solved by below steps...

git pull --rebase origin master
git push origin master
Add a comment
arunkumarak
asked Nov 27 2017
edited Oct 05 2018
Post your Answer