How to use github

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

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/buono/test.git
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.
https://help.github.com/articles/create-a-repo

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 http://github.com/username/***.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