TortoiseGIT提交

Git最新版下载地址:https://gitforwindows.org/
TortoiseGit,Git客户端,32/64位最新版及对应的语言包下载地址:https://tortoisegit.org/download/



Git Pull是从远端拉取最新的代码,Git Fetch是从远端拉取最新的分支,Git Push是将本地仓库的代码提交到远端
Git Commit ->”master”,将本地代码提交到本地版本库
Unknown:新增的文件,也不在版本库
Added:新增的文件,在版本库
Modified:文件修改,在版本库
Missing:文件被删除,在版本库
将代码推送(push)到远端
分支:
新建一个分支,右键-->TortoiseGit-->Create Branch

想回到之前的master分支
右键-->TortoiseGit-->Switch/Checkout,选择master即可
分支合并
合并分支前,一定要确认分支上的代码全部提交到本地版本库了
右键-->TortoiseGit-->Merge,选择被合并的分支
版本回滚
先查看日志,确定想回滚到哪个版本

右键-->Reset “master” to this…,表示将当前master分支上的文件回滚到这个版本
在Reset Type下选择Hard:Reset working…..,点击Ok即可








switch to new branch
创建本地分支
通过“Switch/Checkout”切换到新创建的分支上
分区合并


TortoiseGit创建并提交

TortoiseGit
下载git 版本控制工具 https://git-scm.com/download/win


安装软件:Git-2.7.0-64-bit.exe 和TortoiseGit-1.8.16.0-64bit
下载地址:http://git-scm.com/download/win下载页面如图所示
http://tortoisegit.org/download/ 下载
zh_CN
下载地址: http://tortoisegit.org/download/

请点赞!因为你的鼓励是我写作的最大动力!
吹逼交流群:711613774
