在windows下使用TortoiseGit提交代码到github
2013-03-10 17:27
344 查看
一、安装git工具
在windows下使用git最好的软件就是TortoiseGit,类似与TortoiseSVN小乌龟。下载地址:https://code.google.com/p/tortoisegit/
安装顺序: recommended order: install TortoiseGit first
——先安装TortoiseGit,再安装msysgit
https://code.google.com/p/msysgit/
安装完之后使用git bash.
git bash是Windows下的命令行工具。
基于msys GNU环境,有git分布式版本控制工具,也主要用于git。
二、关于git和github的一些概念
repository [ri'p?zit?ri] 知识库,版本库,代码库collaborate [k?'l?b?ret] 合作,协作,协同
git 是一个快速高效的、分布式的版本控制系统,完美适用于协作式软件开发。
github 是与其他人协作做好的方式。
fork 分支
brunch 分支
三、向github中托管代码
1.set up git
1.配置Username和Emailgit config --global user.name "Your Name Here"
git config --global user.email "your_email@example.com"
2.配置git和gitbash可以正常显示中文
http://blog.csdn.net/son_of_god/article/details/7341928
2.create a repo
首先在github上新建一个repo,如 MyTools,然后在git bash中操作mkdir MyTools
cd MyTools
git init
touch README
--edit README file
git add README
git commit –m 'the first commit for git'
git remote add origin https://github.com/FrankFan/MyTools.git
git push origin master
说明:
touch和cat的区别
cat 一般是用来查看文本文件内容 touch可以新建一个空文件,可以修改文件的创建时间
update 2013-05-17
1.如果要删除一个文件,使用
git remove READ
删除之后再git add <file>则不会在索引中删除这个文件,必须通过使用-a选项的命令:
git commit -a -m 'now file READ is removed'
2. git clone
把github上的源代码库拷贝到本地:
git clone https://github.com/FrankFan/DatabasePicExporter[/code]
相关文章推荐
- 使用TortoiseGit提交代码到Github.com上 详细步骤
- windows环境下使用git客户端、GitHub和TortoiseGit管理项目代码
- 使用TortoiseGit提交代码到Github.com上 详细步骤
- 使用Git 和 TortoiseGit 往github 上提交代码
- TortoiseGit学习系列之Windows上本地代码如何通过TortoiserGit提交到GitHub详解(图文)
- windows环境下使用git客户端、GitHub和TortoiseGit管理项目代码
- windows环境下使用git客户端、GitHub和TortoiseGit管理项目代码
- windows环境下使用git客户端、GitHub和TortoiseGit管理项目代码
- windows下使用MINGW32提交代码到github
- 使用git提交本地代码到github
- mac上使用github命令提交代码实例(三)创建Android项目
- 使用SourceTree提交代码到github
- 使用git往github上提交代码时出现[packet_write_wait connection to xx.xx.xx.xx Broken pipe]错误的解决办法
- Windows中使用TortoiseGit提交项目到GitLab配置
- TortoiseGit和msysGit安装及使用笔记(windows下使用上传数据到GitHub)
- 使用git提交代码到github
- 使用Android Studio向GitHub提交代码
- windows平台下使用Github(2 创建代码仓库,安装Github客户端.)
- GitHub for windows 使用【创建、提交、同步、分支等操作】总结
- 如何使用git工具向github提交代码