while using command "git push -u origin master" i recived below error
http://prntscr.com/o3bgt0
C:\Users\mohi.ahmed\Desktop\test_git>git push origin -u master
To https://github.com/akankha/test.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/akankha/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 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.
0
Akankha
I tried "git push origin master -f" and its worked for me.
0
Peter
What is the text editor you are using?
0
antonio
I think Alex use Sublime
0
Daniel
Where are the download links mentioned in step 02?
0
Akankha
You can download it from https://git-scm.com/ selecting the os version of yours.
while using command "git push -u origin master" i recived below error http://prntscr.com/o3bgt0
C:\Users\mohi.ahmed\Desktop\test_git>git push origin -u master To https://github.com/akankha/test.git
! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/akankha/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 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.
I tried "git push origin master -f" and its worked for me.