Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use GitHub code navigation from browser?

I want to take advantage of GitHub's code navigation features on the browser but I am getting this error message at the top of the Python code:

Code navigation is available for this repository but data for this commit does not exist.

When it works successfully it says:

You're using code navigation to jump to definitions or references.

Could somebody help me understand what this message means?

like image 698
Darius Avatar asked Dec 09 '19 20:12

Darius


People also ask

How do I view the GitHub code in my browser?

Right click and select Open on GitHub from the GitHub submenu. Your browser will open and navigate to the code on GitHub.

How do I open my GitHub code in VS browser?

Consider the simple process below illustrated in order to add GitHub repository in VS Code as follows: Step 1: Open the GitHub repo in any browser. Step 2: In the address bar, just add “1s” (without quotes) next to the word github.

How do I navigate to a Git repository?

Accessing the Repository If your repository already exists locally, navigate to it using cd [your-repository-name] , if you want to check the contents of your directory, use ls . If your repository does not exist locally, get the clone link from the "Clone or Download" button on the GitHub Repository.

Can I code directly on GitHub?

With the web-based editor, you can navigate files and source code repositories from GitHub, and make and commit code changes. You can open any repository, fork, or pull request in the editor. The web-based editor is available to everyone for free on GitHub.com.


2 Answers

Private Repositories are not currently being indexed for Code Navigation. Currently, Code Navigation indexing is being performed on Public Repositories and will be rolled out to Private Repositories over time.

like image 106
Cfir TSabari Avatar answered Sep 22 '22 15:09

Cfir TSabari


Amazing feature :- Now you can open VS code as a browser window. For now it is on Beta version. Try below steps.

  1. open the git repo you want.

enter image description here

  1. Type 1s in URL after github word like below.

enter image description here

  1. After hiting enter you can see view like below. It is VS code

enter image description here

============UPDATE============

Any repo can open using browser window and it is exact same open with vs code that repo.

For use this feature go to the repo and after press '.' (fullstop).

Now you can see it will open like vs code interface

like image 26
Supun Sandaruwan Avatar answered Sep 23 '22 15:09

Supun Sandaruwan