GitHub Integration With Pycharm IDE

 

The below post is the first step in learning the AWS Developers Tool. 

We will see how to integrate Pycharm IDE with GitHub.

First, We need a GitHub Account and we need to generate a Token.

I have a GitHub repo called "aws_code_deploy".


Now let's set up a secure encrypted communication between the PyCharm IDE & the GitHub Repository. To ensure that your PyCharm IDE can access your GitHub Repository, you must generate a Personal Access Token from here. The scopes gist, read:org, and repo are the minimum that must be granted to the access token. Any additional scopes can be granted as per requirement.




Now, We have the token generated.

In PyCharm go to File Menu→ Settings → Version Control → GitHub.



Now, the GitHub account is added.

Now PyCharm is permitted to access your GitHub Repo, but we still need to technically enable the secure encrypted exchange via SSH. Unless this is done, it will not be possible to Clone the Repository or Push code changes to it. Most commonly the error would be like: Error: Permission denied (publickey). This means that the server rejected your connection request.

I am generating public/private key pair using Putty KeyGen.

Add the public key to the GitHub Account.



We are done with Integrating GitHub with Pycharm IDE.

From the Pycharm IDE, We can clone the repository, commit, and push.



















Comments

Popular posts from this blog

SRE/DevOps Syllabus

AWS Code Commit - CI/CD Series Part 1

Docker - Preventing IP overlapping