1, git installation configuration
1, download git
https://git-scm.com/download/win
2, installation
Fool can be installed, remember the installation directory
3, Configuration
2, the configuration git SSH
1, first apply a GitHub account
2, generating SSH keys for: Git command line, run: ssh-keygen -t rsa -C "your email address";
3, find the C: \ Users \ yefengyu \ .ssh directory, copy the contents of id_rsa.pub inside
3, configuration Github
1, log on GitHub
2, set up to find Github
3, find local SSH configuration
4, click on the SSH adn GPG keys, will appear the following page
5, copy and paste the contents of id_rsa.pub to the following key inside, title can easily named, then click on the button below.
4, IDEA configuration
1, the path configuration git
2, create a new project, for example, we want to be pushed to the following project GitHub above:
3, log on GitHub, a new design-pattern warehouse
4, open the folder where the project, in the folder on the right to run: git bash here, execute: git init
In fact, this time to open the idea, you can right project, git-> git add
And then commit directory, pay attention not to submit certain documents
This time it can push to a remote repository
Note URL
After clicking OK
Need to enter a user name and password after clicking PUSH:
After the correct input, the code can be pushed to GitHub above to see again:
Note: not submitted before any code, URL is where you can see
After submitting you can see from here