首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Git 课程 - Git 基本用法

2012-06-30 
Git 教程 - Git 基本用法  原文地址:http://lugir.com/git-basic.html? ? ?Git 是当前最流行的版本控制程

Git 教程 - Git 基本用法

  原文地址:http://lugir.com/git-basic.html

? ? ?Git 是当前最流行的版本控制程序之一,文本包含了 Git 的一些基本用法 创建 git 仓库   初始化 git 仓库

git?archive?--format?tar?--output?/path/to/file.tar master?# 将 master 以 tar 格式打包到指定文件使用 Git 的一些基本守则: 当要commit/提交patch时:
  • 使用 git diff --check 检查行尾有没有多余的空白
  • 每个 commit 只改一件事情。如果一个文档有多个变更,使用 git add --patch 只选择文档中的部分变更进入 stage
  • 写清楚 commit message

热点排行