My git version is Git-1.9.4-preview20140611 Earlier, I cloned an empty git origin repository. The repository cloned but with following message
warning: You appear to have cloned an empty repository. Checking connectivity... done.
Next, copied a .gitIgnore file which was in another project's master Git repository and committed it to the local master. This file has been used by us for many times before. This seems fine. We have a standardized .gitIgnore file for all our projects. This was created as part of best practices.
Next created a new branch and copied some code in the physical location where local git repo resides
git checkout -b FromCC
Added the code and committed in this branch.
git add --all
git commit -M "Blah"
All these operations are successful.
My purpose is to merge these changes eventually into local master branch.
I next do
git checkout master
and get following message.
Your branch is based on 'origin/master', but the upstream is gone. (use "git branch --unset-upstream" to fixup)
What does this message mean? Why would upstream 'go away' ?
Interesting observation: I repeated the same process with the same master Git repository today. This time the Git repository was not empty. It had .gitIgnore file before hand. This time fore-mentioned message did not appear.