I could not found the file which I uploaded by git push command.

I could not found the file which I uploaded by git push command.

Here is the reproduce procedure;

  1. Create application on backendless console, and set git feature enable.

  2. 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
    
  3. 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
    
  4. 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
    
  5. 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.

Hi Niro.

“But on the backendless console, I could not find the file which I uploaded.” - currently it works as expected.
Your file was saved in .git in encoded format.
If you pull or clone this repo, you will receive this file.

Showing files from git in file console will be implemented in next iteration.

Regards,
Kate.

Thank you Kate.

I’ll wait for next iteration.

Regards,
Niro.