git commands for github
AI 回答
由 glm-4-flash 生成 · 仅供参考,请自行核实
1. 克隆仓库:`git clone [url]`
2. 创建分支:`git checkout -b [branch-name]`
3. 添加文件:`git add [file-name]`
4. 提交更改:`git commit -m "[commit message]"`
5. 推送分支:`git push origin [branch-name]`
6. 拉取最新代码:`git pull origin [branch-name]`
7. 查看提交历史:`git log`
8. 创建远程仓库:`git remote add origin [url]`
9. 删除远程仓库:`git remote remove origin`
10. 查看当前分支:`git branch`
2. 创建分支:`git checkout -b [branch-name]`
3. 添加文件:`git add [file-name]`
4. 提交更改:`git commit -m "[commit message]"`
5. 推送分支:`git push origin [branch-name]`
6. 拉取最新代码:`git pull origin [branch-name]`
7. 查看提交历史:`git log`
8. 创建远程仓库:`git remote add origin [url]`
9. 删除远程仓库:`git remote remove origin`
10. 查看当前分支:`git branch`
没有找到「git commands for github」相关的内容
建议:检查关键词是否有错别字,或换一个更常见的说法。