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