Steps to set up GitHub in Mac Pycharm

Source: Internet
Author: User

Before looking at the SDN controller code, Pox,ryu are written in Python, at that time want to find a better IDE open code, search on the internet found the pycharm, feel really good, there are many features have not been discovered, The main note today is how to set up GitHub in Pycharm.

First, install GitHub plugin

In the settings there is a plugins (plugin) option, first check whether there is a relevant plug-in, if not, need to download.

IDE integration is relatively high, GitHub plug-ins should have.

Second, check whether Git and SSH are installed locally

The current Yosemite version of Git and SSH should be provided by default, but just in case you check.

1.git Inspection

Open terminal, enter Git, if prompted without the command, need to install (in fact, the general installation of Xcode has been installed git). There are a variety of installation methods in Mac, here is just a simple way to install on Mac: Download git OS X Installer from the Internet, mount the DMG image and install Git. If you want to learn more about the Git installation method, you can check the blog, install git on your Mac

http://blog.csdn.net/zhangkongzhongyun/article/details/7903148

2.SSH Inspection

Open terminal Check whether SSH is installed, no installation of Baidu's own

Third, set the GitHub account password in Pycharm

Preferences->version Control->github window, such as, host unchanged, login and PWD to fill out their own, after filling the right there is a test button, testing is correct.

Iv. Add the SSH keys of the native Mac to the GitHub account

Enter the following command in terminal to generate SSH keys

SSH-KEYGEN-T rsa-c [email protected]163. COM (mailbox at the time of registration)
CD ~/.ssh
Ls

after LS, you can see a file id_ras.pub, copy its contents, and use it to add a new key to the GitHub setttings->ssh keys. Title random, key value paste the content just copied.

V. Pycharm update code to GIT

1. Create a new project

As shown in the figure below, vcs->import into Version control->share Project on Githib,

Selecting will then copy the existing project to GitHub and create a new repositories on it.

2. Submit the updated Code

In the Pycharm toolbar there is a VCs green arrow up icon, which can be changed after clicking on the code.

or the shortcut key command+k, select the file to commit, OK will be OK.

Pro-Test Effective ~

Learning, TW After the interview only to find themselves really too weak too ignorant, become Gandalf Bar, towards this goal forward ~

Steps to set up GitHub in Mac Pycharm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.