jupyterlab-git: fatal:The current branch master has no upstream branch
Whenever I try to push, i get this message.
Then, I go Git>Open Terminal and run:
git push origin master
And everything works smoothly.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (5 by maintainers)
Had the same issue with “The current branch master has no upstream branch” on push into empty repo on AWS SageMaker JupyterLab.
Going into Terminal, cd from home to SageMaker and than to my repo folder. Then
git push origin master
and after that GUI starts working for everything when a proper folder with repo is selected in the file browser extension.It looks like AWS SageMaker presents folder ~/SageMaker as home in the browser, while git extension considers ~/ to be home dir and as a result, it can not find the folder with git repo to push.
When I select another folder in the file browser extension and then go to the git extension and try to stage and push changes, it considers that selected folder to be git repo folder, and as it is not really git repo folder it throws push failed with no error message.
Hope this might help.
It’s usually helpful if you provide more context than I just did it - e.g. copy and paste the exact commands you ran and the unabridged output.
Since we don’t know what you actually did, could you paste the output of the following commands: