My files are not committing, although I have perhaps 50 or more changes.

Mary Anne Fusco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 25, 2023

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!

1 answer

1 accepted

1 vote
Answer accepted
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 25, 2023

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
...
Mary Anne Fusco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 25, 2023

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!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events