DEV Community

Cover image for Configuring VSCode with GitHub

Posted on

Configuring VSCode with GitHub

1. Install git scm to your machine

sudo apt install git-all

2. Create a new GitHub repository

Alt Text

3. Ensure git is enabled in your VSCode settings

Alt Text

4. Add a Remote

5. Pull all the initial changes

First commit the changes present in your local system and run

git pull <repo-name> master --allow-unrelated-histories

6. Commit all your changes to GitHub

Stage the changes that you want to commit , commit and push to the remote to which you want to add your changes.

Clone a GitHub Repository

git clone <repo-url>

Uninstall git from Ubuntu

sudo apt-get remove git

Top comments (0)