How to Upload to Github With Visual Studio Code

Cover image for Connect Your Github To VS Code

Suraj Vishwakarma

Connect Your Github To VS Code

Intoduction

If you are reading this, then you probably know what GitHub and VS Lawmaking(Visual Studio Code). If not then here you go. Github is like social media for programmer where you can upload your code/ project file and get star, fork, and tin be part of the developer and piece of work on the projection with other programmers on Github. VS Code is an IDE(Integrated Evolution Surround), We can brand it more than powerful by using the extensions and information technology's very easy to customise. Information technology comes with pismire pre-congenital which no other text editor does and it also allows us to tweak into its code and so we can even modify it's surroundings variables according to our preferences. It has a large drove of extension which you can use for your requirement. VS Lawmaking is developed by Microsoft.

Earlier we started, I wanna thank @Risabh Singh for helping me to write the weblog. Make sure check his Dev page too. And then lets get started.

  • REQUIREMENT

    • GitHub : Create a GitHub business relationship. If you have then it'south slap-up.
    • Git: Download and Install Git and login to your GitHub account.
    • VS Lawmaking : Download and Install VS Code

    VS Lawmaking

    Afterward downloading when you open VS Code, nosotros demand to download the extension to connect VS Lawmaking and GitHub. To download and install extension but click on extensions button on left side panel or but click Ctrl+Shift+X on windows and Cmd+Shift+10 on mac to open up extensions console and and so search GitHub Pull Requests and Issues and download the extension.

    Alt Text

    After Installing extension login to your GitHub account by clicking on the Accounts push button located at the lesser left side of the panel.

    Alt Text

    GitHub

    Create a repository on your GitHub account and you can add together README.medico file for the initial function and Copy the SSH Code by clicking on Code and then simply you can copy or click on copy to clipboard. Now you lot accept SSH Code of your GitHub repository.

    Alt Text

    VS Code

    Open your VS Code and make sure you are in your desired folder to clone your GitHub repository. So now simply, we have to type some GitHub command.

    • git clone

      • This command will clone your all files and folder you take in your GitHub repository.
      • Command
                                                git                      clone                      https                      :                      //github.com/surajsrv11/A-FRAME-.git                                      
      • Don't clone GitHub repository in the same binder once again and once more. Its a one time control for the same folder. If you do, then it will give yous an error.

    Now after cloning your repository, yous can work on it and make necessary changes.

    Make sure when you lot are using next GitHub command, you should open the integrated last in the repository folder.

    Alt Text

    When y'all are going to execute git command for the start fourth dimension, you lot will have to log in to your GitHub business relationship.

    • git add .
      • The git control adds a change in the working directory to the staging area.
      • It tells Git that you want to include updates to a particular file in the next commit.
      • If information technology works it does not show anything in the terminal
    • git commit -m "Your Message"
      • The "commit" control is used to save your changes to the local repository.
      • In the double quote, y'all can add your own message.
    • git push origin master
      • git push origin will push changes from all local branches to matching branches the origin remote.
      • In simple word, information technology will upload all the changes that you make in the local repository folder to the GitHub.

Past Using this few steps, you can clone, edit and button to origin primary easily in the GitHub repository. Hope you lot like the post. Thank you for reading the blog.

jefferiescanch1939.blogspot.com

Source: https://dev.to/surajondev/connect-your-github-to-vs-code-1n71

0 Response to "How to Upload to Github With Visual Studio Code"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel