Tuesday, May 13, 2014

Github “Updates were rejected because the remote contains work that you do not have”

// Git: “please tell me who you are” error
git init
git config user.name "someone"
git config user.email "someone@someplace.com"
git add *
git commit -m "Initial commit"

git remote add origin //your github url
//pull those changes
git pull origin master
//now, push your work to your new repo
git push origin master

No comments:

Post a Comment

Javascript find highest and lowest from the given inputs

function highAndLow(numbers){ // numbers = "4 5 29 54 4 0 -214 542 -64 1 -3 6 -6"   let numbersInArr = numbers.split(' '...