badpeak.blogg.se

Connect visual studio code to github
Connect visual studio code to github




connect visual studio code to github

VS Code is an IDE(Integrated Development Environment), We can make it more powerful by using the extensions and it’s very easy to customise. Github is like social media for programmer where you can upload your code/ project file and get star, fork, and can be part of the developer and work on the project with other programmers on Github. If you are reading this, then you probably know what GitHub and VS Code(Visual Studio Code).

connect visual studio code to github

Now, every time you make changes to your code you push the changes on GitHub by committing (the check mark) and then pushing/syncing/publishing (from the. The files in your local folder should now be visible in the file list on the page. Verify that all went well by refreshing your GitHub project page. You do this in order to not lose your changes, in order to track your changes forwards and backwards in time and to publish your work for others to see it (like other devs or potential employers)

  • pushing/publishing the commit, by clicking on the.
  • clicking on the check mark at the top of the Source Control window and giving a description to this first commit.
  • Last step is to push your local files to the remote repository.
  • run a git pull to make sure your project loads the readme and license file by typing git pull origin master.
  • verify the remote by typing git remote -v.
  • set the remote by typing git remote add origin.
  • Now you need to connect your local repo to your remote repo and you do this by typing some stuff in the Visual Studio Code Terminal window: Then initialize your local repository by clicking on the plus sign and selecting your project folder: On the left side menu there are a bunch of vertical buttons, click on the Source Control one

    connect visual studio code to github

    Open Visual Studio Code in your project's folder. The Windows installer is simple to find, download and Next-next-next to success. Now that you have a remote repo on GitHub, you need to remember its URL, you will need it later.

    connect visual studio code to github

    I recommend adding a README and a licence (I use MIT), too. Make sure you give the repository a name and a decent description. Or click the green New button on the top of your repositories list in the main page. You need to create a GitHub account first, then either go to Your Repositories The first step is to create a repository. This is a side post to Programming a simple game in pure HTML and Javascript in the sense that we are going to add that project to source control in GitHub using Visual Studio Code.






    Connect visual studio code to github