[PYTHON] When I try to push with heroku, it doesn't work

When I tried to push with heroku, it didn't work, so record the workaround.

 ![rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://git.heroku.com/〜〜〜.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

I got this error.

$ git remote -v

When I confirmed it with, it was connected to a strange place.

Therefore,

git remote set-url heroku {https://git.heroku.com/app name.git}

I changed it in. This worked.

Change Heroku Push Destination

Recommended Posts

When I try to push with heroku, it doesn't work
When I try to make Apache SSL, it doesn't start.
When I tried to create a virtual environment with Python, it didn't work
When matplotlib doesn't work with python2.7
A memorandum when I tried to get it automatically with selenium
When I try to go back using chainer, it fits a little
When I try matplotlib in Python, it says'cairo.Context'
When I tried to change the root password with ansible, I couldn't access it.
I tried to use Java with Termux using Termux Arch but it didn't work
When I tried to make a VPC with AWS CDK but couldn't make it
When send_keys doesn't work
When dropbox-sdk-python doesn't work
I was in trouble because I couldn't push with heroku
I want to work with a robot in python.
I introduced black to vscode, but it doesn't autoformat
When I try to install mysqlclient with Django, I get error: command'gcc' failed with exit status 1.
What I did when I was angry to put it in with the enable-shared option
When I try to divide with Bert Japanese Tokenizer of Hugging Face, it fails with initializing of MeCab or even with encode.
When I tried to create a project using Python on Docker with PyCharm, it didn't work, but it worked with Docker Compose.
Try to factorial with recursion
The sound of tic disorder at work is ... I managed to do it with the code
[IOS] GIF animation with Pythonista3. I was addicted to it.
I get [Error 2055] when trying to connect to MySQL on Heroku
When I try to connect to MySQL with mysql-connector-python, I cannot connect with the error "SSL connection error: SSL_CTX_set_tmp_dh failed"
[Solution] When I try to connect to CloudSQL with GAE, I get an ImportError only when using dev_appserver.
It's Halloween so I'll try to hide it with Python
When I try to divide a list with MeCab, I get'TypeError: in method'Tagger_parse', argument 2 of type'char const *''
A story that didn't work when I tried to log in with the Python requests module
Push rejected, failed to compile Go app. Error when deploying Go to Heroku
The record I was addicted to when putting MeCab on Heroku
W3C Validators didn't work with Sublime Text3 so I made it work
When it is troublesome to copy what you built with vue
When creating .gitignore with gibo, I didn't have to write .python-version.
What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1
How to deal with errors when installing whitenoise and deploying to Heroku
I get an error when trying to install maec 4.0.1.0 with pip
A note I was addicted to when creating a table with SQLAlchemy
Articles to see if rejected when git push heroku master on Heroku
When I try to use pip, SSL module is not available.
Articles to read when Blender Python script code doesn't work in 2.80
I tried to improve the efficiency of daily work with Python
Make it easier to test programs that work with APIs with vcrpy
I started, but it doesn't start!
Try to operate Facebook with Python
Try to profile with ONNX Runtime
I want to do ○○ with Pandas
Try to output audio with M5STACK
I want to debug with Python
Intellisense doesn't work with tensorflow2.0 + VScode
I want to get angry with my mom when my memory is tight
I want to do it with Python lambda Django, but I will stop
I want to tweet on Twitter with Python, but I'm addicted to it
When I tried to run Python, it was skipped to the Microsoft Store
When you want to use it as it is when using it with lambda memo
It is better to use Weight Initializer when initializing with HeNormal with Chainer
Gist repository to use when you want to try a little with ansible
I tried to make a calculator with Tkinter so I will write it
I installed PySide2, but pyside2-uic didn't work, so I managed to do it.
Use Python from Java with Jython. I was also addicted to it.
I get a UnicodeDecodeError when trying to connect to oracle with python sqlalchemy
I tried to install Docker on Windows 10 Home but it didn't work