Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Updates were rejected because the remote contains work that you do not have locally

git remote add origin [//your github url]

//pull those changes
git pull origin master 

// or optionally, 'git pull origin master --allow-unrelated-histories' if you have initialized repo in github and also committed locally
//now, push your work to your new repo

git push origin master
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Updates #rejected #remote #work #locally
ADD COMMENT
Topic
Name
3+3 =