10/14/2020 Visual Studio For Mac Github
This week on Channel 9, Christina is frustrated she can't buy a Surface Laptop 2 in rose gold outside of China, but she's still ready with the latest developer news, including:
Please leave a comment or email us at [email protected].
Visual Studio For Mac
Some of my other articles about Visual Studio Code :
Introduction
First of all, what you need to do is to download the Visual Studio Installer by going to this link and click the Download Visual Studio for Mac button. It will download a disk image (.dmg ) file of Visual Studio Installer.
Visual Studio Code has built in Git support, but very few know how to use it on OSX with GitHub. Even in the official docs, there is only a few paragraphs on it. In this post, I’ll show you how I set it up.
Adding your project to GitHub
Switch to your project and hit the source control button as shown below.
The first thing you will see is that your workspace isn’t under git source control.
Press the “Initialize Git Repository” button and include a commit message (1) and finally hit the check mark at the top (2).
Your Project is Under Git Source Control, now What?
If you navigate back to your project, then you will see a new folder called “.git” and a config file that contains the following :
Here is a screenshot of my project :
This is typically the part where you begin a Google Search because you can’t figure out how to get the drop down to populate to push your source to a remote server.
Time to Fix it!
Open github.com and create a Repo. Copy the path to the .git for later use.
Using the terminal, navigate to the location where your Visual Studio Code project is and type the following two commands (replace my .git project with yours) :
If you examine your .git/config file you will see the following has been added:
Here is a screenshot of my project :
You can now switch back to Git in Visual Studio Code and perform git operations without using the command line. Here is an example of where I modified a file and committed it to a remote server.
Visual Studio For Mac GitWrap-upUsing Github With Visual Studio
Thanks for reading and if you have any questions or comments, then leave them below. If you are interested in my previous article on Visual Studio Code with TypeScript, then click here.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |