I am a complete new bie to heroku
I just installed heroku toolbar and performed the below operation
$ heroku create
Creating pure-oasis-4419... done, stack is cedar
http://pure-oasis-4419.herokuapp.com/ | git#heroku.com:pure-oasis-4419.git
$ heroku create --stack cedar
Creating mighty-stream-7975... done, stack is cedar
http://mighty-stream-7975.herokuapp.com/ | git#heroku.com:mighty-stream-7975.git
$ git push heroku master
fatal: I don't handle protocol 'git#heroku.com:https'
Can any one please tell me why i am getting this error.
I also tried
git remote -v
Still I get
fatal: I don't handle protocol 'git#heroku.com:https'
I am sure i have a mistake somewhere. Could any one help me with this.
git pull the source code to your device.
start working on the code. Or just rewrite them with yours.
git add .
git commit -m "commit message"
git push
It's maybe because of your Git version. Try using the latest one as advised in older question git error: cannot handle https
Related
problem on the photo.
when i use the git push heroku master terminal allways give me this response.
i search on google but i didn't find any qestion on my language.
i follow all codes but i see this.
heroku login
$ cd my-project/
$ git init
$ heroku git:remote -a afbchatapp
and
$ git add .
$ git commit -am "make it better"
$ git push heroku master
enter code here
What language are you using?
Let's start with the problem at the beginning. Usually, Heroku tries to automatically detect the type of app you deploy by looking for certain files that act as signatures for the language you're using. So for example if it's a NodeJS app and you're deploying from Github, Heroku will look for the package.json file in the main branch. You can find the rest of the information for other files here. You may want to look at this first.
From there this solution to an almost similar problem should be able to fix the push.
I want to push a project I created to Heroku from Git. I'm running windows and have the Git Bash shell installed as well as the Heroku CLI. Running this from Git Bash shows my Git version:
$ git --version
git version 2.14.1.windows.1
However, when I try from that same Git Bash shell to create my application on Heroku as a remote Git repo, I get an error:
$ heroku create
bash: heroku: command not found
So instead I created my application on Heroku from a regular windows cmd terminal and that worked (i.e., when I log into heroku I see the remote repo). But when I try to do a git push from the windows cmd terminal it does not recognize git:
C:\myapp>git push heroku master
'git' is not recognized as an internal or external command,
operable program or batch file.
Whereas when I try to do a git push from the git bash shell, I get this error indicating perhaps it doesn't know what to make of heroku:
$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.
So it seems my regular windows cmd terminal recognizes heroku, but my Git bash terminal does not. How do I configure Git bash to recognize the Heroku command?
Note: When I do a env | grep path from the Git bash shell the results do include my C:/Program Files/Heroku/bin directory, so Git is aware of my Heroku path.
Your problem is not that git would not push to heroku, but that you actually haven't installed git on your system, as the message you posted suggests.
'git' is not recognized as an internal or external command,
operable program or batch file.
At heroku's documentation there is a whole article about pushing to git, if you experience further problems after installing git, you might find a solution there.
Found a solution! It required the following 3 steps/considerations:
First, I followed john g's answer here, which is to close Git Bash and login to Heroku via a windows cmd terminal, then use Git Bash as per normal.
Second, when issuing a heroku command from Git Bash on Windows, include the extension, as described here. I.e., issue heroku.cmd create (instead of just heroku create).
Third, apparently the git push heroku master command must be issued from the same Git Bash terminal where you just issued heroku.cmd create. When I had issued it from a separate terminal I got an error saying "'heroku' does not appear to be a git repository".
I'm posting this, in hopes that it may help others and save them the same trouble I had. This was driving me mad and I tried every solution I could manage to find on the issue. Spent several hours trying to trouble-shoot it. What it actually ended up being was a conflict with my internet security, specifically Comodo Internet Security Premium 10. I received no warning, it just automatically added it to a blocked list on first execution. If you are running internet security software, especially on a Windows machine, this very well could be your issue. Remove the command file found at C:\Users\YOUR_USER_NAME\AppData\Local\heroku\client\bin\heroku.cmd from any block list, as well as any other executables from heroku that may be on the list.
I'm using gemfury and git with Ruby for the first time and am having trouble doing a push to my remote gemfury repository:
git push fury master
I get an error message saying that I need to do a git pull to update my code with the latest changes.
After doing a git pull I get several conflict errors but it doesn't make sense as it's a fresh clone of the master repo. Others from my team don't seem to get the same errors when building the same package.
I've tried deleting the local repository and doing a git clone again. I've also tried doing a git reset but without any progress.
Any help or pointers would be helpful as I haven't been able to solve this issue yet and it's starting to fustrate me. Thanks!
I have an existing xcode project and repo on Github. I recently added a ReadMe file which was suggested by Github but now I can no longer commit and push changes to Github. I keep getting an out of date message. How do I fix this problem?
I had the same experience of adding README.md with the same error.
If you don't want to git pull, because the remote version in Github is outdated.
You can also force push all local branches using:
$ git push -f origin master
The following commands in the Terminal will push your local Xcode project to remote Github.
cd <drag location folder of project>
git init
git push -f origin master
You need to git pull.
If you're using the command line, navigate to the directory of the repository and run git pull. If you're using another interface, the steps may be a bit different.
I'm working on Cloud9 IDE, and I just attempted to deploy to Heroku, but I got this error:
[1/5] Verifying preconditions...
[2/5] Updating repository...
[3/5] Pushing to Heroku...
1:: Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts.
! Push rejected, repository is empty
To git#heroku.com:anthro-site.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:anthro-site.git'
I looked around and found a few questions here that are similar, such as this one, but unfortunately the answer to that question requires me to install software, and I don't think I'm allowed to do that on Cloud9. I don't seem to have access to the heroku command, so it must not have been installed for me. How do I proceed?
Apparently you can install the Heroku client on Cloud9, as described here:
To deploy to Heroku, type the following commands:
wget http://assets.heroku.com/heroku-client/heroku-client.tgz
tar xzfv heroku-client.tgz
cd heroku-client/bin
PATH=$PATH:$PWD
Now, you can use the heroku command for your projects, as described in the Heroku documentation.
But that wasn't my problem. It seems in order to push to heroku, you must be on your master branch. The steps for me were as follows:
$ git checkout master
$ git merge dev # that's the branch I was working on
# if you don't merge, master will not have whatever
# commits you've made to the branch you were on.
$ git push --set-upstream heroku master
after that I waited for Heroku to finish installing my app, and now I can access it.
https://devcenter.heroku.com/articles/git#deploying-code
Branches pushed to Heroku other than master will be ignored by this
command. If you’re working out of another branch locally, you can
either merge to master before pushing, or specify that you want to
push your local branch to a remote master. To push a branch other than
master, use this syntax:
$ git push heroku yourbranch:master
It worked for me.