初识git
来源:互联网 发布:网络零点女装2014款 编辑:程序博客网 时间:2024/05/16 10:17
1,基本命令
git config [--global] user.[name,email] xxx
git init
git add file1 [file2 ... ]
git commit
git status
2,更改编辑器
git默认用nano
git config --global core.editor vim
还可以定义自己的diff工具:
git config --global merge.tool vimdiff
3,配置文件
/etc/gitconfig :系统, 对所有用户, 使用 git config --system 来读写
~/.gitconfig :用户配置, 使用 git config --global 来读写
查看配置:
git config --list
git config user.name
4,clone
三种协议:http , git , ssh
ssh: git clone user@hostname:/path/to/project newname
git: git clone git://hostname/path/project
5, fetch
git fetch 远程仓库名
6, push
git push 远程仓库名 本地分支名:远程分支名
99,网络资源
opengit.org
progit.org/book/
progit.org/book/zh/
- 初识git
- 初识Git
- 初识git
- Git初识
- 初识Git
- 初识Git
- 初识git
- 初识Git
- GIT 初识
- 初识Git
- Git初识
- git初识
- 初识Git
- Git初识
- Git初识
- Git初识
- 【Git】初识
- git初识
- c/c++ const 用法
- MySQL复制(二) --- 二进制日志怎么干活的
- FCKeditor 详细介绍
- 编程中的21条法则
- Someone and Something
- 初识git
- Android实战: 如何实现 图片分享菜单加入指定程序
- smarty缓存
- C++课堂总结
- Java常用类
- 面向对象 依赖 关联 聚合 组合 关系
- CODE
- 敏捷开发般若敏捷系列之五:如何推广敏捷(中)(无寿者,回报,破我执)
- asp.net 应用程序中的服务器错误 对象名 无效