Use the git shell command-line mode to operate with GitHub

Source: Internet
Author: User
Tags git client git shell

First, log in to Git and create a new repository

Second, in the "Repository name" column to fill in the name of the version of the warehouse, such as "test", description column is a description, can be filled.

The default access is public, click the "Creating Repository" button, that is, the version repository was created.

Next, install the git client locally.

First, to the official website to download the client: Https://github-windows.s3.amazonaws.com/GitHubSetup.exe, after the installation is complete, there will be two icons on the desktop, Git shell and GitHub. The two icons are command-line tools and graphical interfaces, respectively.

Two, double hit Open git Shell

Three, enter git config --global user.name "XXX" , here "XXX" is the registered user name

Iv. input git config --global user.email [email protected] , the mailbox here is the mailbox at the time of registration

Five, the above two steps to configure your Git account on the client, and then build your own version of the repository. Input cd d: , switch to the D-disk directory.

Six, enter mkdir test , create a test directory, Note that the local repository name to be the same as the repository name established in Git

Enter cd test the test directory

Eight, input git init , initialize the version of the warehouse

Nine, enter touch README , create a Readme file

Open the Readme file with a text editor and enter a few files, for example: Hello git!

Xi. input git add README , adding files to the upload queue

12, input git commit -m ‘test commit‘ , cache submission, quotation marks are the description of this submission, must be filled, cannot be empty

13, input git remote add origin https://github.com/XXX/test.git , note the URL format, XXX is your nickname when registering, test is you just built the version of the warehouse

14, input git push origin master , upload the Readme file to the repository.

Use the git shell command-line mode to operate with GitHub

Related Article

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.