First, the installation procedure omitted
Second, run "Git Bash" in the open window to enter:
Ssh-keygen-t rsa-c "[Email protected]"
will prompt the SSH public keys to store the location, by default, directly press ENTER;
Next prompt to enter the password, enter two times and then confirm, do not set the password is directly enter two times;
Complete the above steps, Ssh-keygen generated, locate the Id_rsa.pub file under the key save directory, copy the contents, log in github.com, and add the content just copied in the SSH related settings.
Three, basic configuration
git config–global user.name "username"//git username
git config–global user.email [email protected]//Same as the email address previously written
Iv. creating projects and uploading
Login to GitHub website to create a project
Create a GitHub folder in your local directory, create a folder in it, name the same as the project name above, and put the item in the folder, right click on "Git bash" in the Command box, enter the following command
Touch readme.md//Generate README.MD file
GIT init//Generate GitHub configuration information
git add readme.md
Git commit-m "First commit"//local Commit
git remote add origin [email protected]:googleask/ecstore.git//Configure remote information
Git push-u origin master//upload ready to complete
V. Modify local files and upload updates
After modifying the local file, right-click "Git Bash" on the project folder and enter it in the Open command box
Git commit-a-m ' version 1.2.3 '//modify (local)
Git push–u origin master//modify (server), go to GitHub online can find has changed
Vi. downloading items from the server
git clone [email protected]://Project generated on git is SSH address
Git Basics using Small notes