# 2023-2-13 Git ###### tags: `Git` 分散式的版本控制系統 分散式:相對於集中式,每個人手上都有足夠正確的資料可以將資訊拼湊出來 ```bash $ git config --list $ git config --global user.name "yourName" $ git config --global user.email "yourEmail@gmail.com" $ ctrl+w = 砍 word $ ctrl+u = 砍整排 $ ctrl+r = 搜尋歷史紀錄 $ ctrl+l = 清畫面 上、下 按鍵 按q 結束瀏覽 $ git init #初始化Git專案 $ git status $ git add <檔案>... #暫存 $ git add . #暫存全部 $ git rm --cached <檔案>... #取消暫存 $ git restore --staged <檔案>... #捨棄工作區的改動 $ git commit -m "commit的訊息" $ git log #view history $ git log --oneline #view history in one line $ git checkout <至少4個字的ID> $ git checkout master ``` ## Visual Studio Code ### 擴充套件(Extensions) * Git Graph
×
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