什麼是 GitHub?
GitHub 是全球最大的程式碼託管平台,基於 Git 版本控制系統。
設定
sudo apt install git
git config --global user.name "你的名字"
git config --global user.email "your@email.com"
ssh-keygen -t ed25519
基本工作流
git clone git@github.com:user/repo.git
git checkout -b feature/my-feature
git add . && git commit -m "feat: new feature"
git push origin feature/my-feature
常用命令
git status、git log --oneline、git diff、git stash、git pull。