Git and GitHub use the series

Source: Internet
Author: User

I'm going to start writing a series of articles about Git and GitHub, one that you can summarize, and GitHub to use, to store some of your own knowledge frame.

1. Preparation: There is an account on GitHub, Windows 10 operating system, WIN10 installed on git.

2.

mkdir Pork_dbobject

Git init

Copy some files to Pork_dbobject under this directory

git Add./*

Git commit-m ' Add pork_dbobject '

(git push) git remote add Origin https://github.com/flyysr/pork_dbobject.git

At this point, create Pork_dbobject repository this repository on the GitHub website.

(Git push origin) git push--set-upstream origin Master

This allows you to update a locally created Git repository on GitHub to manage your projects on GitHub, and in new places, as long as Git pull is available from GitHub on the repository

Pulled it down. It's very convenient. :-)

In fact, after creating a new repository on GitHub, a page prompt will show you how to add code to the repository.

Git and GitHub use the series

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.