"Warn: No remote found on branch"
Doing either open in Github or copy link to clipboard gives me "Warn: No remote found on branch". Have tried with a private repo cloned from Bitbucket server as well as a public Github repo (https://github.com/pzelnip/dotfiles)
Visual Studio Code Version 1.17.0 (1.17.0)
@pzelnip The warning will be shown if you checkout a new local branch without pushing it to remote. You can check this.
But I'd like to open it even if no remote branch exist because I often compare current editing file with other branch version by:
- call
Open In Githubwith shortcut - Open the link in browser(404 page)
- Change the URL to desire branch
- Compare the code in browser and vscode
What do you think? @ziyasal
I think it would be better if rather than opening a 404 page it defaulted to opening the file on the master (aka default) branch. This is how Atom behaves in this situation and it works great. It would save you from having to change the URL and is almost always what you want