I am following this tutorial https://www.railstutorial.org/book/static_pages#sec-sample_app_setup and I successfully completed all steps (git commit and push on github, heroku login and heroku app creation) until this command:
$ git push heroku master
I also tried:
$ git push heroku origin
$ git push heroku
And it resulted in this error:
> fatal: No path specified. See 'man git-pull' for valid url syntax
I tried to solve it by following this answer but it didn't work for me.
After I tried what the top answer suggested, this is my config file in .git:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://github.com/kunokdev/sample_app.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "heroku"]
url = https://git.heroku.com/test774.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Any ideas what the problem is? I am using Ubuntu 14.04 OS.
$ git config --list | grep heroku
url.ssh://git@heroku.com.insteadof=https://git.heroku.com/
remote.heroku.url=https://git.heroku.com/test774.git
remote.heroku.fetch=+refs/heads/*:refs/remotes/heroku/*