uwhpsc-2016 / homework1

Homework #1
1 stars 1 forks source link

Pushing to GitHub #47

Open jdstead opened 8 years ago

jdstead commented 8 years ago

I am getting the following errors when I attempt to push a commit to the repo. I have a cloned repository, so I should not need to create new repo, I should just be able to push the commits up right?

! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/uwhpsc-2016/homework1-jdstead.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.
cswiercz commented 8 years ago

Perhaps you didn't create a local clone? How did you obtain the homework repository code in the first place?

mollyzyy787 commented 8 years ago

I have the same issue, I was wondering do we need to set up a git remote?

cswiercz commented 8 years ago

Try pulling into your local clone, first.

cswiercz commented 8 years ago

Reopening since this may be useful to other students.