Git Basics using Small notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.