[PYTHON] What to do if you try to push to git hub and get "fatal: The current branch develop / feature / discussion has no upstream branch."

I got scolded

$ git push

When I tried to upload the code to git hub with fatal: The current branch develop/feature/discussion has no upstream branch.

I was angry. It seems that "github says" I don't know the branch ".

counter-measure

You can give it an upstream branch, but it will give you a hint in case of an error.

image.png

So as it is

$ git push --set-upstream origin develop/feature/discussion

Code

$ git push

Now, enter the password and you're good to go.

Everything up-to-date

Recommended Posts

What to do if you try to push to git hub and get "fatal: The current branch develop / feature / discussion has no upstream branch."
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
What to do if you get a "No versions found" error in pipenv
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if you get `No kernel for language python found` in Hydrogen
What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you get "coverage unknown" in Coveralls
What to do if you cat or tail a binary file and the terminal is garbled
What to do if you get a UnicodeDecodeError with pip install
What to do if you can't use the trash in Lubuntu 18.04.
What to do when you get "I can't see the site !!!!"
What to do if you get the message "" ~ .pkg "is corrupted and cannot be opened" when installing wxPython on Mac OS X
What to do if you get "The session could not be opened" when installing CentOS on VirtualBox
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
What to do if you get the error Target WSGI script'/var/www/xxx/xxx.wsgi' cannot be loaded as python module
What to do if you get lost in file reference with FileNotFoundError
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if you get stuck during Anaconda installation on Linux
What to do if you get the error RuntimeError: Python is not installed as a framework when trying to use matplitlib and pylab in Python 3.3
What to do if you get a TypeError with numpy min, max
What to do if you get an error when trying to load mnist
What to do if you get Could not fetch URL 443 with pip
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get angry with swapon failed: Operation not permitted
What to do if the latest Jupyter Notebook and nb extensions don't work
[Note] What to do if the Qt library conflicts between pyqt and opencv
What to do if you get an error when installing python with pyenv
What to do if you get "Python not configured." Using PyDev in Eclipse
What to do if you can't pipenv shell
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
What to do if you get an "unknown service" error from your gRPC server
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if the Microsoft Store opens even if you run python on Windows
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get an error when importing matplotlib in Python (Mac)
How to install and use pyenv, what to do if you can't switch python versions
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you can't hit the arrow keys in the Python interactive console
What to do if you run python in IntelliJ and end with an error