vscode-open-in-github icon indicating copy to clipboard operation
vscode-open-in-github copied to clipboard

"Warn: No remote found on branch"

Open pzelnip opened this issue 8 years ago • 2 comments

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 avatar Oct 08 '17 15:10 pzelnip

@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 Github with 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

vincentbel avatar Oct 18 '17 10:10 vincentbel

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

foxyblocks avatar Oct 22 '17 23:10 foxyblocks