acbackens / AtBSwP

Based on the book 'Automate the Boring Stuff with Python'.
0 stars 1 forks source link

One Way How to Clone a Repo and establish a GitHub connection with PyCharm #3

Open beebus opened 1 year ago

beebus commented 1 year ago

This .git file (or link to it) is what you need to properly load / link the GitHub repo into your local IDE. image

In the PyCharm IDE, you'll first not see a Git tab at the top. You'll need to install the Git plugin for PyCharm.

  1. File > Settings > Version Control > GitHub
  2. Click the + symbol

image

  1. Login via GitHub
  2. It'll open a browser tab:

image

  1. Then you'll see something like this:

image

  1. Click Apply, OK

  2. Click VCS > Get from Version Control... image

  3. Click GitHub on the left menu image

  4. Then find your repo in the list that appears image

  5. Click Clone button at the bottom. This will clone the repo from GitHub into a local directory. After working on it locally, you'll have "push" (or do a "pull request") the local version of the code to GitHub. If you're able to just push, you won't have to do anything extra. If you do a pull request, then you'll also have to login to GitHub in the browser and accept the pull request.