How to use github

**Add a new repository at github.
Enter the following

git init
git add
git commit -m "first commit"
git remote add origin
git push -u origin master

** or if you had created a .git with git init first.

First, go to the directory you want to manage and issue the following command.
This will create a hidden .git directory one level up.

git init

The rest is clearer on the github help screen.

The process of **upgrading** is

git add Files you want to add
git commit -m "message"
git push origin master

Good in. Only initially, the following is needed between the second and third.
git remote add origin***.git

*Note: git commit cannot be omitted! Because you need to tell the local repository that you have made a change?
*Note: master is the name of the branch. Default is master
*Note: add origin https://~~~ gives the information that origin is at this URL.

**How to create a new branch
The following will create a new branch called mybranch
git bracn mybrach

In addition, you can switch branches as follows. Files are also changed automatically. Amazing.
git checkout mybranch