new folder::: mkdir **
move::: mv from to
delete::: rm **
cat ***
passwd
passwd username
git:
git add **
git commit -m "***"
git status
git log
git reflog
reset with head x: head go to head x
--soft: neither of working directory and staged snapshot will change
--mixed: default), only staged snapshot will sync with head x
--hard: both will sync with head x
reset with head x file: git reset head^ readme.txt
sync the readme.txt in head^ to staged snapshot
checkout with head x file: git checkout head^ readme.txt
sync the readme.txt inworking directory with that in head^
checkout with branchname: switch to this branch and sync working directory with head
checkout with head x: switch to head x and sync working directory with head
git rm **
git push remotename branchname
git branch -d ** //delete branch
git remote add origin git@...
clone from gitHub:
git clone git@github.com:xxx/xxx.git
clone from server:
git clone git@IP:/home/(user)/***/***.git
public key on PC:/.ssh
add authorized keys on server:/home/git/.ssh