1.git Installation
The installation reference text is as follows:
Final Finish
2 Use of Git
1. The first step to using GitHub is, of course, registering a GitHub account. After that you can create a warehouse (free users can only build public warehouses), create a New Repository, fill in the name after create, there will be some warehouse configuration information, this is a simple git tutorial.
2. Build a local repository (run git bash)
First, SSH key is created locally;
$ ssh-keygen-t Rsa-c "[email protected]"
Behind the[email protected]Change to your mailbox, then ask to confirm the path and enter the password, we use the default one-way return to the line. Successful words will be generated under ~/. SSH folder, go in, open id_rsa.pub, copy the key inside.sign in to the GitHub page, click Avatar, and select Account management. Then click the SSH key and then have a key that he added to copy the key you just copied. The addition is complete.
A. Go to the directory where you want to upload the folder (with the CD command)
B. Initialize the repository (git init) (this time ask for a hidden. Git folder next to the price clip)
C. Add to the local repository (git Add.)
D.
E. Adding a remote address
F. Uploading to the remote repository
This is uploaded to the remote repository. Go back to the GitHub main screen to see the code you just uploaded.
Remote Warehouse Connection: HTTPS://GITHUB.COM/LINHXH
git uploads local code