I followed vogella tutorial about GIT, section 17 exercice "Working with (local) remote repository". when executing step 17.3, I got this error :
The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream ../remote-repository.git master
The steps executed are:
$repo01>git clone --bare . ../remote-repository.git
Cloning into bare repository '../remote-repository.git'...
done.
$mkdir repo02
$\repo02>git clone ../remote-repository.git .
Cloning into '.'...
done.
$\repo01>git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: test01
modified: test02.txt
no changes added to commit (use "git add" and/or "git commit -a")
$repo01>git commit -a -m "Some changes"
$\repo01>git push ../remote-repository.git
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream ../remote-repository.git master
What can be the reason?