摘要: 01 - 05 01 - 临时保存和恢复当前改动 执行git stash保存后,git status将显示无任何改动。 git stash # Temporarily stores all modified tracked files git stash list # Lists all stash 阅读全文
posted @ 2017-01-28 23:27 Anliven 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 1 - 分支 分支模型定义了创建、合并、删除分支的场景与时机。 不同的分支模型对应了不同的分支管理策略。 master主分支主要用来发布新版本,应该保持稳定,并且时刻与远程库同步,一般情况下不允许在master主分支直接做修改。 通常都是在新建的branch分支修改,确认改动稳定后,合并到主分支ma 阅读全文
posted @ 2017-01-28 23:18 Anliven 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: 1 - 必要的概念 当前编辑界面:工作区(workspace) “git add”命令:将改动加入到缓存区(Index) ”git commit”命令:提交代码到本地库(Local Repository) ”git push”命令:提交代码到远程库(Remote Repository) 2 - 未使 阅读全文
posted @ 2017-01-28 23:11 Anliven 阅读(2719) 评论(0) 推荐(0) 编辑
摘要: git help git version # Display the version of git. git help # Prints the synopsis and a list of the most commonly used commands. git help git # Displa 阅读全文
posted @ 2017-01-28 22:43 Anliven 阅读(3286) 评论(0) 推荐(0) 编辑