Reference article http://blog.csdn.net/laozitianxia/article/details/50682100
A person in the group asked if there is a GitHub upload article, to him, embarrassed, too much, not to write, in order to meet their vanity, so to fill a bit, write this article loaded with force, although may be forced not to be despised, haha
First, you have to create the warehouse first.
Take a name for the warehouse, and then click Create to have a warehouse.
GitHub is a server, and we need a git client to use git on our own computer.
Windows users please download http://msysgit.github.com/
Then go to your project root directory and click Git bash here to enter the GIT command interface
Execute the GIT init command and see as shown
Create a local SSH key,$ ssh-keygen-t rsa-c "[email protected]" after the [email protected] to your own on GitHub registered mailbox, and then enter, such as
Go to the prompt address to view the SSH key file,
Then open the. pub file, copy the contents, remember not to copy the last name of the message, that useless, copy the previous paragraph, back to the GitHub site, create a key, paste, save, such as
Verify if successful, enter $ ssh-t [email protected].com, as shown in Git bash]
Set up username and email because GitHub will record them every time a commit
$ git config--global user.name "Your name"
$ git config--global user.email "[email protected]"
Then add the remote address, git remote add origin [email protected]:yourname/yourrepo.git, YourName and Yourrepo to show you the GitHub username and the new warehouse you just created
The config file opens with the configured content at this time
You can also modify config directly to configure the remote address
And then just add the file, I'm here to add all the files, $ git Add. , add a single file to remove the later points, change the file name, then commit, $ git commit-m "first Commit"
There may be a initial, such as the commit untracked files, which is roughly the result of conflicting code versions and local inconsistencies in the remote repository
At this point, enter $ git fetch--all and git reset--hard origin/master, as
That's fine, and then you add the commit to be OK, like, a long
Then commit, $ git commit-m "first commit" is also a long
Then push is good, $ Git push Origin master, as shown
Then you go back to your GitHub repository and find that it has been submitted, although star is only 0, (┬_┬), a very awkward warehouse
The following update is also the case, add, submit
Go back to GitHub and find the update
Https://github.com/1024477951/listrecyclerview
Last star, poor pity, humbly!
GitHub upload Flowchart Records