Checkout: http://www.hoangvancong.com/category/software-development/tools/git/
git config --global user.name "FIRST_NAME LAST_NAME"
git config --global user.email "[email protected]"
git config --global credential.helper store
git pull
https://github.com/settings/tokens
git init [Init in CURRENT FOLDER]
git init NEW_FOLDER[Init in NEW FOLDER]
git add FILE_NAME
git add . [Add a all changes in CURRENT_FOLDER to staging area]
git status
git commit -m "your_message"
git commit -am "your_message"[Do both "add" command and "commit" command at the same time]
git log
git log --oneline[More offen]
log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit [Most Offen]
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"[With this config you only have to type "git lg"]
NOTE: COMMIT -> PULL -> MERGE or FIX Conflict if needed -> PUSH
git clone https://github.com/thebrownbox/HowToUseGit.git
git checkout exist_branch
git checkout -b new_branch
git push -u origin new_branch
git push
git merge other_branch
command[NOTE]