Github is not working in Visual Studio Code - github

I have tried to install the GitHub pull and request extensions in the Visual Studio Code.I installed it. But when I searched "Github" in the Visual Studio there is nothing showing in the visual studio code.

Your question is not clear, but I will try to answer it based on my understanding.
Try with Ctrl+Shift+P and search git, you should see all git commands.
From the official website:
To get started with the GitHub in VS Code, you'll need to install Git, create a GitHub account and install the GitHub Pull Requests and Issues extension.
Once you've installed the GitHub Pull Requests and Issues extension, you'll need to sign in.
After this, you can search for and clone a repository from GitHub using the Git: Clone command in the Command Palette (Ctrl+Shift+P) or by using the Clone Repository button in the Source Control view (available when you have no folder open).

Related

How do I get the Git menu to appear in Visual Studio 2019?

Visual Studio is connected to GitHub in Manage Connections > GitHub
I have GitHub Extensions for Visual Studio installed.
In Preview Features, the following are checked...
GitHub Action support in Publish
New Git user experience
I am running Visual Studio in Admin mode.
I have restarted the compute and Visual Studio multiple times.
I have a local repo opened.
I have been able to connect the project to GitHub and commit code already, but now I am unable to.
I can see the menu in the Extensions > Customize Menu dialog (see attached).
Still, my repo is not connected to GitHub and I don't see the menu item.
What am I doing wrong?
Can you see "Add to Source Control" in lower right corner of Visual Studio window? If yes, click it and then click Git. In my case, Git menu appeared after this action.
In my case there was no "Add to Source Control" in lower right corner. File > Clone repository... also did not help. But I was able to connect to remote repository via VS Get Started window.

How to export a project created on Aptana Studio on Github?

I have created a Rails project on Aptana Studio 3 and now I want to put it in a repository on Github. I red How to set up Git with Aptana Studio 3? but the solution given in it is the other way. So, my question is how to export my project (for first time) in my empty Github repository ?
Thank you
Simply follow github's tutorial here https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
It work for any project
Since Aptana Studio 3 is based on Eclipse, and includes EGit, you can follow the EGit GitHub tutorial to push your local repo to your new empty GitHub repo.
As long as you
create a local Git repo and did one local commit,
configure your remote repo credentials (for instance your GitHub SSH key)
you will be able to specify "Add all branches spec" to your push configuration.
If you are using HTTPS (or even SSH) you need a recent Git For Windows (2.16.1).
Not the 1.9.4 you show.
That is because because GitHub just disabled TLSV1 a few days ago.

Visual Studio Code GitHub account

I have a Visual Studio Code project for an Angular2 app created using AngularCli (webpack version). Out of the box, AngularCli will generate a new project for you and check it into Git. How do you know which GitHub account it's using? I cannot find any information in Visual Studio as to what GitHub account is controlling the code history. I can make changes to the code and check it in using Visual Studio Code's embedded Git functionality. I've logged into GitHub using my account, but I do not see this new project. Where do you find information on what GitHub account either AngualrCli and/or Visual Studio Code is using?
How do you know which GitHub account it's using?
It doesn't need to use any github account to create a git repo. It's just calling git init, followed by some git add/git commit commands. You can do those without github credentials. After the tool does its job, you have a fully-functional local git repo.
You only need github account when you try to push code to github, which you did not yet do, I assume. You don't need github credentials to work with local repository (view history, add new commits, branch, merge, etc.)

Cloning a GitHub project into Visual Studio 2013

The canonical question on 'how to use Git in Visual Studio?' appears to be this one posted by Herb Caudill.
One of the more recent answers notes (correctly) that "Visual Studio 2013 natively supports Git".
So when I go to a Github page (supercolider's is the one I'm trying to clone) and click on the 'Clone in Desktop' button I would expect (hope) that Visual Studio 2013 would take up the link and clone the repository. That is not what happens, instead Windows (I'm using 8.1) asks me if I would like to visit the store to find an app that can handle files of type (github-windows).
What is the correct way to clone a GitHub repository in Windows under Visual Studio 2013? The various MSDN pages (e.g. Share your code in Git or Setup Git on your dev machine) mention GitHub but do not explain how to use it.
It is super easy once you know how :)
From within Visual Studio 2013:
Select File -> Open -> Open From Source Control
The Team Explorer window will come up, one of the sections is "Local GIT repositories". In that section choose "Clone".
That will bring up a path selection textbox and directory browser. Simply replace the default path with the git URL (in your case "https://github.com/supercollider/supercollider")
Thats it!
Note: unless specified otherwise, Visual Studio will store the actual files here:
C:\Users\\Source\Repos\
What you do is go to the Team Explorer, click the Connect to Team Projects, select the Clone option and enter the URL of the Repo you wish to clone and press Clone
To expand on neo12's answer & address the canonical question "how to use Git in Visual Studio"
I agree with neo12. Additionally you can also navigate directly to solutions from the Team Explorer "Local Git Repositories" section by double clicking them
Here is a walk through I put together to explain in concise detail. The video is less than 2 minutes. Let me know if this helps.
http://prestoasp.net/lesson/how-to-work-with-visual-studio-github/

Git Extensions vs GitHub for Windows

I am using Visual Studio 2010 Express. I know that this edition does not support git extensions integration. So I have tried a standalone source control Gui like git extensions but today I have seen another possibility that is GitHub for Windows.
I would like to know which is the difference between Git extensions and GitHub for Windows.
As illustrated here, GitHub for Windows (G4W) can interface with only the latest version of Visual Studio.
This is the main difference, in the context of your question, with Git Extensions, which is a plugin for Visual Studio (2005/2008/2010/2012), as shown in this article.
As such, Git Extensions isn't a "stand alone GUI".
You would compare, for "stand alone" GUIs, a G4W and an Atlassian Stash for instance.
I ran into the same question. Maybe this will help the next person.
Git for Windows - is a lightweight, native set of tools that bring the full feature set of the Git SCM(source control management software) to Windows while providing appropriate user interfaces for experienced Git users and novices alike. (source)
This tool can also be installed separately by visiting https://git-for-windows.github.io. This tools is not just for github but for git in general.
GitHub Extensions for Visual Studio - "lets you connect to GitHhub.com or GitHub enterprise and work with GitHub repositories inside of the visual studio IDE." (source: MS help) It adds a functionality(like context menus) inside of Visual Studio for things like creating and cloning repositories. (more here)
Git for windows lack lot of must have feature. gitextensions is most powerful GUI I ever use. Go for https://code.google.com/p/gitextensions/