Skip to content

Instantly share code, notes, and snippets.

@rickywid
Created May 12, 2015 20:34
Show Gist options
  • Save rickywid/491c1e8f1883fb84ab80 to your computer and use it in GitHub Desktop.
Save rickywid/491c1e8f1883fb84ab80 to your computer and use it in GitHub Desktop.
git init
git add .
git commit -m "message"
git remote add origin git@github.com:crazyboy867/simpsons-rails.git
git push -u origin master
I'm getting the following error message ===>
To git@github.com:crazyboy867/simpsons-rails.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:crazyboy867/simpsons-rails.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment