Sometimes to play GitHub will inevitably trample on the pit, record a journal, complete the story of a project on the Geihub from scratch process
1.github Background New Project
2. Configuration Items
3. Upload a locally existing project that requires a managed project
3.1 from the terminal CD to the folder in which the project resides
3.2 $ git init (initialize a local git repository)
3.3 $ Touch Readme.md (Introduction to Engineering code)
3.4 $ git add readme.md (add to Warehouse)
3.5 $ git commit-m "first" (Submit notes)
3.6 $ git Remote Add Origin https://github.com/qxuewei/XWBorderImage (add local repository origin and specify remote warehouse address link as just new remote warehouse link)
3.7 $ Git pull–rebase origin master (pull remote warehouse to local)
3.8 $ Git push origin master (push local repository to remote repository)
If the push to remote repository does not appear, the local GitHub account is not configured successfully
Needs to be performed at the terminal:
git config–global user.name "username"
git config–global user.email "[Email protected]"
Configure your own GitHub account, especially the mailbox, can not be wrong!
Ultimately, your project will be successfully hosted on GitHub.
Reference Links:
Http://stackoverflow.com/questions/24114676/git-error-failed-to-push-some-refs-to
Http://www.techug.com/github-3
http://blog.csdn.net/duxinfeng2010/article/details/8654690
Hosting local projects on Ios-github