So I'm completely new to git and github but gradually learning.
I went through a tutorial and pushed an existing project up to my git hub.
I've now made some changes to the project and want to push these new changes up to github again. What is the process??
I've been trying a few things but it's not working as easy as I thought. Getting a lot of errors.
I used this method for the first push:
git remote add origin remote repository URL
git push origin master
I tried the same again it isn't working, in the hints it mentions git pull which I'm researching now.
So I've staged and committed everything I need and then wrote this git command to push changes:
git push origin master
These are the hints I got back:
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushin
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.