Purely use git tools to issue commands to operate gibhub

http://www.cnblogs.com/NetSos/p/4382448.html

quote

Roughly divided into the following steps

Install git environment, the tool uses
the account on msysgit github
First click the plus sign add new next to the avatar on github, select new Repository, create a name by yourself, assuming it is named as

the end of github on the hevily line Started to set up

the local mysysgit to associate with the online, first of all, the pub file of the ssh book is associated with the online ssh key

//Note that the C in -C here is uppercase
ssh-keygen -t rsa -C "your gtihub After the "mailbox"
 is set, enter the directory of the command prompt, the default is c:\Users\Administrator\.ssh Here, only the .pub file is needed. The other one is the private key, which you can use by yourself. This is open, pay attention to the encoding format, if it is garbled, it means that there is a problem with your open tool, after opening, ctrl+A ctrl+C to copy all the

content Go to the online github, click Settings to find SSH keys, click add ssh key , title yourself Write whatever you want, paste the content you just copied into the text box of the key, and save it! You're done! 

To open the tool mysysgit, you need to configure your mailbox and name globally first. The command is as follows:


git config --global user.email "github mailbox After "
git config --global user.name "github name"
 is configured, you have basically completed a large part of your work

Start and remote is the library hevily on github, associate

=== ad git github ===

First in a local folder, here we operate under d:\git-test

cd /d/git-test /

First you need to clone the online library

//The following [email protected]:hevily/hevily is the git address of the project you just created
//If you can't find it, just go online and click the hevily project you just created, on the right , look on the right
//SH clone URL
//You can clone with HTTPS, SSH, or Subversion.
//Here, click ssh and then copy the address in the box, you can

git clone [email protected]:hevily/hevily
 to enter Hevily cloned the directory, and start creating your own ideas unscrupulously.

   Start submitting.//First


link to the remote git library

git remote add origin [email protected]:hevily/hevily

//Start adding all the local files Next
git add .

//Submit

git commit -m "here is the commit comment I wrote"

//Submit to the remote
git push -u origin master
  Enter the online github to see if your file has been submitted successfully~~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326276799&siteId=291194637