I am starting to use git. I will be the only one using the repo. For backup purposes I want to regularly push my repo to a remote Server.
Using git push
gives me the
git push error 'remote rejected] master -> master (branch is currently checked out)'.
To cope with this, I created a dummy branch on the remote location and checkout this branch.
Pushing into master now works fine.
I am a little worried since I can't see the actual files in my remote location. Will this work as a backup system? When I switch to the master branch in my remote location all files are present. Will the backup files be generated while pushing into a none active branch or will they be generated once the branch becomes active?
Hope you can help to clear things up.
Regards.