github bash commands
AI 回答
由 glm-4-flash 生成 · 仅供参考,请自行核实
1. 克隆仓库:`git clone <repository-url>`
2. 创建分支:`git checkout -b <branch-name>`
3. 查看分支:`git branch`
4. 提交更改:`git add <file>`,`git commit -m "<commit-message>"
5. 推送到远程:`git push origin <branch-name>`
6. 拉取更新:`git pull origin <branch-name>`
7. 撤销未提交的更改:`git checkout -- <file>`
8. 撤销已提交的更改:`git revert <commit-hash>`
9. 合并分支:`git merge <branch-name>`
10. 查看提交历史:`git log`
2. 创建分支:`git checkout -b <branch-name>`
3. 查看分支:`git branch`
4. 提交更改:`git add <file>`,`git commit -m "<commit-message>"
5. 推送到远程:`git push origin <branch-name>`
6. 拉取更新:`git pull origin <branch-name>`
7. 撤销未提交的更改:`git checkout -- <file>`
8. 撤销已提交的更改:`git revert <commit-hash>`
9. 合并分支:`git merge <branch-name>`
10. 查看提交历史:`git log`
没有找到「github bash commands」相关的内容
建议:检查关键词是否有错别字,或换一个更常见的说法。