1 Install git in the system and enter the following command in terminal
sudo apt-get updatesudo apt-get install git
2 Configure Git, enter the following command in terminal
git config--global"Your Name"-global"[email Protected]"
Use the following command to see the configuration you just
git config--list
3 Configure the Pycharm, click
File--setting--version Control--git first to let Pycharm detect a locally installed GIT application
File--setting--version Control--github Next you need to enter your username and password in this dialog box, click Test to see if the tests were successful.
4 Create a GitHub repository, assuming that you already have a project code locally
Click Vcs--import to Version control--share Project on Github
The popup box will then let you enter a warehouse name (not Chinese)
Then click Share
Then it pops up so that you choose which files need to be synced, select them, and in the following commit message you can enter your own information, then click OK, your code is submitted to the online. Can see
5 Modified file Submission
Right-click on the modified file or directory: Git--add, first put the file into the staging area.
You can also submit files directly to the warehouse by Git-commit file ..., the following procedure is the same.
Then click on the commit file above add
Once you have completed the commit message, click on the Commit and Push below to submit it directly to the online
Use Git to submit code to the GitHub repository under Pycharm in the UBUNTU16 system