Notes
Notes | Git 命令
初始化一个新的 git 仓库 git init 为 Git 全局配置默认名称及邮箱 git config --global user.name <your-name> git config --global user.email <your-email> 克隆一个仓库 git clone <repository-url> 加一个文件到暂存区: git add <file> 将所有文件添加到暂存区 git add. 检查未暂存的更改 git diff 提交暂存区的更改 git commit -m "Message" 将暂存区重置为最后一次提交