git
文章平均质量分 65
喵呜喵喵喵
这个作者很懒,什么都没留下…
展开
-
GIT知识总结
初始化一个Git仓库,使用git init命令。 添加文件到Git仓库,分两步: 使用命令git add <file>,注意,可反复多次使用,添加多个文件; 使用命令git commit -m <message>,完成。 HEAD指向的版本就是当前版本,因此,Git允许我们在版本的历史之间穿梭,使用命令git reset --hard commit_id。 穿梭...原创 2018-10-17 21:54:02 · 90 阅读 · 0 评论 -
GIT——分支管理
分支管理 Git鼓励大量使用分支: 查看分支:git branch 创建分支:git branch <name> 切换分支:git checkout <name> 创建+切换分支:git checkout -b <name> 合并某分支到当前分支:git merge <name> 删除分支:git branch -d <na...原创 2018-10-27 16:46:59 · 110 阅读 · 0 评论