Hosting local projects on Ios-github

Source: Internet
Author: User
Tags hosting

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.