# git practice ## terminal ``` cd 切換目錄 pwd 取得目前所在的位置 ls 列出目前的檔案列表 -a (列出包含 .開頭檔案) -l (完整檔案的權限、擁有者以及建立、修改時間) mkdir 建立新的目錄 touch now file cp copy mv move rm remove clear clean the screen ``` ## vim  ## git ### set up ``` $ git config --global user.name "Name" $ git config --global user.email "eamil" ``` ### shorten (just being lazy) ``` $ git config --global alias.co checkout $ git config --global alias.br branch $ git config --global alias.st status $ git config --global alias.l "log --oneline --graph" $ git config --global alias.ls 'log --graph --pretty=format:"%h <%an> %ar %s"' ``` ### let git take control ``` $ cd /tmp $ git init ``` ###
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up