I'm having some issues using Git.
I already have a live site hosted on a Digital Ocean droplet. I'd like to push my code to a github repo, and from then do all my development locally. I would push my local code to github and then do updates to the live site by pulling from github.
However, I'm having some trouble getting off the ground.
I already have the repo created and I did a quick git init on the project. I've added the files, made a commit, and then added the repo. However, when I run git push I get this:
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
    git push --set-upstream github master
So, I ran git push --set-upstream github master. It gave me this error:
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/WordsofDefiance/davidaccomazzo.com.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.
Can anyone help me create this initial commit to the repo? I'm imagine I'm missing something super basic.
EDIT: I ended up using --force when pushing, and it worked. Thanks.
 
     
    