brew install --cask iterm2
searching Oh my Zsh on Google
refer: https://gist.github.com/kevin-smets/8568070 (english)
https://steemit.com/kr/@anpigon/mac (korean)
vi ~/.zshrc에서 빠져나오는 법 : esc 누르고 :wp
terminal cli
genetating a directory : mkdir (folder name)
generating a file : touch (file name)
generating many files : touch (file name) (file name)(file name)...
reading a file : cat (file name)
generating a file with code : echo 'hello world' > (file name)
overwriting a file with code : echo 'hi everyone' > (same file name)
remove a file : rm (file name)
remove many files : rm (file name)(file name)(file name)....
remove a directory : rmdir (file name)
if there is a few file in directory : rm -r (file name)
copy a directory or a file : cp (original file name) (copy && create a file name)
move a directory or a file : mv (moving file name) (container directory name)
connector commands (&&):
mkdir box && mv after.txt box
super user do : sudo (security authorization command)
*authentication(인증) confusing meaning with authorization
text editor : nano
if finish input : control + X & Y & Enter button & complete
usage of git
git log : 커밋내역 확인
git log --oneline --branches --graph : check a relationship with each branchs
git remote -v : 저장소의 이름과 주소확인
git remote add (pair repo nickname) (address) : connect to pair repository
git remote remove (pair repo nickname)
git restore --staged (file) : cancel add and commit
git add (file) : file in stage
git add . : files in stage
git commit -m 'summary something" : like snapshot
if it is conflict: after modify and git add (file)
git push (repo nickname) (branch) : store to repository
git pull (repo nickname) (branch) : bring to branch - auto merge
git fetch (repo nickname) (branch) : bring to branch - no merge
useful GUI : smartgit, sourcetree
I installed the Neofetch.