This document is for BEGINNERS!!
1. 【Git command flow】
Git flow is below.
You MUST remember this.
# check your status
1. git status
# upload modified file to staging area
2. git add .
# commit changes
3. git commit -m "commit massage"
# check your commit log
4. git log
(If you want to **exit** type q.)

2. 【Output】 git status
command
This chapter shows input/output of git status
.
- not git repository
- nothing to change
- pre-add(need to add)
- pre-commit(need to commit)
(1). not git repository

This output says "Not a git repository".
You may be in different directory or have not initialized git. Check current directory.
# check current directory command
pwd
If you are in the correct position to track git, you should type initialize command.
git init
(2). nothing to change

This output says "nothing to change".
There are two following possibilities.
(1) You already commited the changes.
(2) You haven’t saved local file changes.
Check your local file!!
(3). pre-add

This output says "Local file is modified. Need to add or stash".
If you want to track local file, you should add the files.
# "." means all-file
git add .
# or
git add file-name
(4). pre-commit

This output says “Your changes are already added for staging”..
So you should commit your changes.
# "-m" means message
git commit -m "your change log message"
# or
git commit
3. 【Other commands & settings】
[command] add remote
If you want to add remote repository, you should type this command.
# add remote repository
git remote add origin remote-repository path
# For example
# git remote add origin git@bitbucket.org:banaoh/toy_app.git
[command] delete remote
If you don't want to add wrong remote repository, you should type below.
# check your set remote path
git remote -v
# if the path wrong
git remote rm origin
[alias] shortcut git command
If you get stress to type full command, you set alias.
"alias" are like shortcut :).
vim ~/.gitconfig
# and
[alias]
st = status
ci = commit
co = checkout