When I use this command 'git push origin master' I have faced this error:
( ! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https: // github.com/rk/cp.git')
Then I have the search according to this error, and I got an answer here and try to follow his opinion, but I have not found any solution and continuously faced this error.
Then I used this command git push origin master -f
: it works fine.
My question is:
If I use this command for push regularly, will I face any problem?
If there is any problem so, how I solve this error?