@lorenzogr wrote:
Hello,
I’ve already developed a project with Visual Studio and is there’s already a git repository on Visual Studio Online.
I wanted to try the Ionic Pro service so I linked the app with ionicionic link --pro-id 4242461e
[....] [OK] SSH setup successful! √ Looking up app 4242461e - done! > ionic config set app_id "4242461e" --json [OK] app_id set to "4242461e" in .\ionic.config.json! > ionic git remote > git init [WARN] Initializing a git repository for your project. Before your first git push ionic master, you'll want to commit all the files in your project: git commit -a -m "Initial commit" > git remote add ionic git@git.ionicjs.com:lorenzogr/myapp.git [OK] Added remote ionic. [OK] Project linked with app 4242461e!
git push ionic master
error: src refspec master does not match any. error: failed to push some refs to 'git@git.ionicjs.com:lorenzogr/myapp.git'
git commit -a -m “Initial commit”
On branch master Initial commit Untracked files: .gitignore .io-config.json MyProject.jsproj Project_Readme.html config.xml ionic.config.json package-lock.json package.json resources/ simulation/ src/ taco.json tsconfig.json nothing added to commit but untracked files present
same message if I run
git status
On branch master No commits yet Untracked files: (use "git add <file>..." to include in what will be committed) .gitignore .io-config.json MyProject.jsproj Project_Readme.html config.xml ionic.config.json package-lock.json package.json resources/ simulation/ src/ taco.json tsconfig.json nothing added to commit but untracked files present (use "git add" to track)
I didn’t yet add my external Repository with last commands
git remote add origin [YOUR_REPOSITORY_URL] git push --set-upstream origin master
Any ideas?
Posts: 1
Participants: 1