I get this message after I pull an updated version from the remote repository, The number goes up by one every time.
The problem appears to be that git creates a new commit for each pull request which just records in the local repository that I have pulled a new version and git status
implies that I should then push this back to the remote. There doesn't seem to be any value in recording this action back in the remote so I was wondering if there was any way of avoiding this.
One suggestion I came across in a post from 6 years ago is to run git pull --rebase
. There was a warning that this could potentially produce trouble for times ahead. Anyway I gave it a try when git status
was showing that I was 6 commits ahead and it removed the commits message. Should I always use git pull --rebase
instead of git pull
for all future updates? Alternatively is there now a way of configuring git to avoid these warnings about being ahead of the remote?