Cloning and upload the local github

Cloning warehouse

1
Git $ clone warehouse SSH address

The online repository file cloning into an empty folder

Upload

Select files to upload

1
$ git add .

. "" On behalf of all the files, if only upload a file, enter the file name directly on the line

Link library, uploaded to the temporary library

1
The commit -m git $ "log"

Connect with warehouse, build upload log

Set the user name mailbox

1
2
$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"

Set your github username, and receiving mail

The uploaded file into warehouse

1
2
$ git remote add origin [email protected]:maiime/maii.git
$ git push -u origin master

Now you can take a look at your online repositories

Original: Big Box  local Cloning and upload the github


Guess you like

Origin www.cnblogs.com/chinatrump/p/11614911.html