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