Using Git and GiHub in VSCode and PyCharm IDE
Using Git and GiHub in VSCode and PyCharm IDE
Using Git & GitHub in Visual Studio Code: Stage, Commit, and
Push
Install GitHub Pull Requests and Issues extension in Visual Studio Code. Also how to add files
from Visual Studio code to GitHub
1. Installing the GitHub Pull Requests and Issues Extension in Visual Studio Code:
o The GitHub Pull Requests extension allows you to review and manage
GitHub pull requests and issues directly within VS Code. Here’s how to get
started:
1. Open Visual Studio Code.
2. Go to the Extensions view by clicking on the square icon in the sidebar
or pressing Ctrl+Shift+X.
3. Search for “GitHub Pull Requests” in the search bar.
4. Click the “Install” button next to the extension provided by GitHub.
5. Once installed, open your desired GitHub repository in VS Code.
6. A new view will appear on the activity bar, showing a list of pull
requests and issues.
o This extension also supports features like in-editor commenting, PR
validation, and terminal integration.
2. Adding Files from Visual Studio Code to GitHub:
o To add files from your local project to a GitHub repository, follow these steps:
1. Make sure you have Git installed.
2. Create a GitHub account if you haven’t already.
3. Open your local project in Visual Studio Code.
4. Add a README.md file (if you don’t have anything else to add yet).
5. Click on the “Publish to GitHub” button.
6. Choose whether you want your repo to be private or public.
7. Select the files you want to include in the initial commit.
8. Commit your changes and push them to GitHub using the Git
commands:
▪ git init
▪ git add .
▪ git commit -m "Initial commit"
▪ git remote add origin <repository URL>
▪ git push -u origin master (replace origin with the
name of your remote repository and master with the
branch name)2.
Video Reference for Using Git & GitHub in VSCode: Stage, Commit, and Push
https://www.youtube.com/watch?v=z5jZ9lrSpqk
Using Git & GitHub in PyCharm IDE: Stage, Commit, and Push
Install GitHub Pull Requests and Issues extension in PyCharm IDE. Also how to add files from
PyCharm to GitHub.
Video Reference for Using Git & GitHub in PyCharm IDE: Stage, Commit, and Push
https://www.youtube.com/watch?v=8ZEssR8VTKo