I could not found the file which I uploaded by git push command.
Here is the reproduce procedure;
-
Create application on backendless console, and set git feature enable.
-
Create git folder and clone from backendless
$ git init Initialized empty Git repository in /home/tsuchiya/gittest/.git/ $ git conlone https://git.backendless.com/<MY APP ID>/.git myfolder Cloning into 'myfolder'... Username for 'https://git.backendless.com': tsuchiya@acrodea.co.jp Password for 'https://tsuchiya@acrodea.co.jp@git.backendless.com': warning: You appear to have cloned an empty repository. Checking connectivity... done
-
Create new file on local repo, and commit
$ cd myfolder$ vi testnote.txt // create new file $ cat testnote.txt hello this is git test text. $ git add testnote.txt $ git commit testnote.txt
-
Push to remote origin, but it causes below error. It seems there are no master branch on remote server.
$ git push Username for 'https://git.backendless.com': tsuchiya@acrodea.co.jp Password for 'https://tsuchiya@acrodea.co.jp@git.backendless.com': No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. Everything up-to-date
-
According to following url’s comment, I create master branch on remote server. I could upload the file, but…
‘http://stackoverflow.com/questions/23528761/no-refs-in-common-and-none-specified-doing-nothing’
$ git push -u origin master
Username for 'https://git.backendless.com': tsuchiya@acrodea.co.jp
Password for 'https://tsuchiya@acrodea.co.jp@git.backendless.com':
Counting objects: 3, done.
Writing objects: 33% (1/3)
Writing objects: 66% (2/3)
Writing objects: 100% (3/3)
Writing objects: 100% (3/3), 259 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://git.backendless.com/<MY APP ID>/.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
But on the backendless console, I could not find the file which I uploaded.