1. See if there is an SSH key (keys) on this computer
Open git bush after running first, CD ~./SSH
The first run estimate will be that the wood has this directory as
It's just.
2. Create a pair of new SSH keys Https://help.github.com/articles/generating-ssh-keys
SSH-KEYGEN-T RSA-C * * * * @gmail. com
Always press ENTER,
The key is stored as the default file. You can also enter a specific file name, such as/c/users/you/.ssh/github_rsa
Then, according to the prompt, you need to enter the password and confirm the password (here, if you are very relieved, actually can not use the password, is to lose the password place, all directly enter, so each push will just enter the line.
OK, now that you have an SSH key on your local machine, you can then add your key to GitHub.
3. Add the key on the github.com,
You can open id_rsa.pub to copy key, or you can copy the content directly from the Clipboard with the command
Clip < ~/.ssh/id_rsa.pub
After the add is finished, you are ready to test successfully.
Run as follows
ssh-t [email protected]
Such as
Indicates that the connection was successful.
Http://www.xuanfengge.com/using-ssh-key-link-github-photo-tour.html.
4. You can create a new repository on GitHub and then put his git clone under your directory,
For example: Git clone [email protected]:* *******/checkerplace.git
If you view the folder, you will see that it is downloaded to the same directory as the secret key, because there is no CD to other directories before cloning.
You can now create a new txt in this directory and submit it to GitHub.
CD to this Checkerplace directory.
git add test.txt//This is to add the specified file
If git Add. is to add all the files under that folder
Then commit to the local library
Git commit-m ' first commit '
can push to remote
Git push Origin Master (default, can also vary)
Now that you've submitted it, you can check to see if there's a test.txt file on your github.
,
Just record a simple operation, lest you forget, can see more information,
More information can be viewed with the authoritative: Http://git-scm.com/book/zh
Here you'll find details of many instructions, view commit history, cancel operations, tag, more remote operations, knowledge of branching operations, advanced customization of Git, and the internal workings of git.
There are also some summary instructions for the Http://blog.163.com/[email protected]/blog/static/115894479201241545917697/
Record the use of Gitbush on Windows