git push and pull data to GitHub.

Source: Internet
Author: User

1. First set up warehousing on GitHub. The process is not verbose.

2. Notice the HTTPS,SSH and other things in the lower right corner.

3. There are many more tools to upload to git. I use the Cygwin here.

As for Cygwin himself to the Internet to download. The installation is also a search for itself. No longer wordy.

4. When the installation is complete, open cygwin.

Switch to the specified disk F disk: CD F

4. Create a local warehouse. A and B. Here, A, a, simulation of two developers. Git init a,git init B

5. Enter a folder: CD a

6. Clone a project on GitHub.

Now open the A folder and you'll see what's on GitHub.

7. Add files and folders to the downloaded project and submit them to GitHub.

Use git add xx to add one or more git Add.

8.git commit-m "description information"

(7, 82 can also be merged: git commit-am "description information")

9. Commit code: Git push Origin master

10. Enter your account and password. Submit complete

If it appears:

Error: Prompt: Update is rejected because the latest commit of your current branch is behind its corresponding remote branch

That's it: Git push Origin +master.

You can also connect GitHub before committing:

Connection command:

Git remote add Origin https://github.com/xxx.xxx.git.

11. If you want to update your project: Git pull is OK in the specified project.

git push and pull data to 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.