I started a new repository and everything was going fine. until I copied some files from a previous project. This seemed to cause the confusion, because only a handful of files would commit. Besides that, I tried to push some files and got this error:
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.
Everything says I am up to date, but I am not. Honestly If it can be done, I'd delete prior commits and just dump the whole project on my local machine onto the remote server, then start committing from there on in. Please help! I am new at this, so pardon my ignorance. Thanks in advance!
The message you are seeing...
Updates were rejected because the tip of your current branch is behind
...means that the remote branch has commits that you local branch doesn't. Therefore, you can't push to the remote branch.
Solution: first pull from the remote branch, then it may merge with your local changes (it can even conflict with those), but finally you will be able to push.
If you used the commandline client:
> git pull
...
> git push
...
thank you. It won't accept my authentication, and an entire folder is not commiting. It is not in gitignore. I will accept your answer for that error message. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.