TortoiseGit 使用教程
来源:互联网 发布:ubuntu 开不开机 编辑:程序博客网 时间:2024/05/17 21:54
转载来源于:http://blog.csdn.net/ethan_xue/article/details/7749639
git的使用越来越广泛
使用命令比较麻烦,下面讲解一下tortoisegit的使用
先下载安装git(msysgit)和tortoisegit,安装后提示重启电脑,不解释
1.找一个文件夹做仓库
这里用repository\shared.gif,空白处点击右键出现以下菜单,创建共享仓库
在弹出的对话框勾选make it bare
第一次的话会提示是个空仓库
2.在工作目录下,先确认身份TortoiseGit-->Setting,在打开的对话框里,左边选git,右边就会出现写用户名和邮箱的地方
在用户工作目录下点击右键,选择git clone,弹出对话框
点击ok后,发现此文件夹下多了一个隐藏的文件夹.git,则clone成功
3.ethan用户在.git同级目录下添加一个文件index.jsp,里面写内容"hello git!"
然后右键Tortoisegit-->add,完成后index.jsp变成+号
然后右键Git Commit -> "master"... 在弹出的对话框,输入message信息后点ok,此时index.jsp变成对勾,提交到了本地服务器
然后右键Tortoisegit-->push则提交到了远程服务器
4.other用户
在other用户的工作目录下,输入用户名和邮箱后,clone和pull,发现了.git文件夹和index.jsp
打开index.jsp输入other update file 保存后,index.jsp变成红色的感叹号
此时右键没有add实际上是工具帮add,然后commit和push
ethan用户pull下来,发现index.jsp里有了other update file
5.冲突解决
有冲突的话,TortoiseGit-->Edit conflicts 比较之后解决冲突之后 TortoiseGit-->Resolve然后commit和push
6、想要tortoisegit每次记住密码,在setting->git->Edit local .git/config末尾中添加如下:
[credential]
helper = store
即可。
- TortoiseGit 使用教程
- TortoiseGit GitHub使用教程
- TortoiseGit 使用教程
- TortoiseGit 使用教程
- TortoiseGit 使用教程
- TortoiseGit 使用教程
- TortoiseGit 使用教程
- TortoiseGit 使用教程
- TortoiseGit 使用教程
- TortoiseGit 使用教程
- TortoiseGit 使用教程
- TortoiseGit 使用教程
- TortoiseGit-gui使用教程
- TortoiseGit GitLab使用教程
- window下TortoiseGit 使用教程
- Tortoisegit安装和使用教程
- TortoiseGit安装和使用的图文教程
- TortoiseGit 安装和使用的图文教程
- 要读的书
- Dalvik 与 JVM的区别 (一)
- iOS学习之iOS沙盒(sandbox)机制和文件操作(一)
- HDU 1569 方格取数(2)
- TortoiseSVN中分支和合并实践
- TortoiseGit 使用教程
- Oracle RAC 常用维护工具和命令
- hadoop学习之路(一)
- Linux下面如何查看主板型号
- Visio 2010 UML作图
- RBM学习笔记
- UML逆向工具,小巧好用
- 黑马程序员 -- Java基础学习(4)
- 详解网关和路由器的区别