I got little bit lazy, so I wanted to take a shortcut:
I wanted to upload some new programming examples to my GIT remote repo, so I created VS solution (for non .NET pepole, just a simple directory) on my desktop. So it looks like this:
- Desktop
- some desktop file.txt
- some catalog
- MyProgrammingExamples
So, in order to push MyProgrammingExamples onto GitHub repo, I navigated in PowerShell to my desktop, fired
git init
git add MyProgrammingExamples
git commit -m 'some message'
Now, I'd liek it to push it onto remote, so further I run commands:
git remote add 'url to my repo'
git push origin master
But it gives me:
fatal: The current branch master has no upstream branch.
So I tried:
git remote add master --mirror=push 'url to my repo'
which reulsted in
fatal: remote master already exists.
Well, it would be good that someone explain what is hapenning, but what I am really after is to how to achieve my goal, i.e. create catalog somewhere (anywhere, not a GIT catalog) and then easily push it to existing remote repository.