Skip to content

Instantly share code, notes, and snippets.

@zealinux
Created October 29, 2012 13:37
Show Gist options
  • Save zealinux/3973579 to your computer and use it in GitHub Desktop.
Save zealinux/3973579 to your computer and use it in GitHub Desktop.
给田园学习git的整理资料

git for 田园

参考

下载和安装 (for windows)

流程(最简单)

# 配置文件
$ git config --global user.name "Scott Chacon"
$ git config --global user.email "[email protected]"

# 首次运行,且只运行一次
$ cd <目录名>
$ git init

# 1-- 每次到这个目录进行提交

# 编辑文件
$ git add .
$ git commit -m "这里加上说明"

# 2--提交(本地)完毕--

# 3--这时候,可以把目录打包发给我。
# --- 以后不需要另外新建目录夹了。

# 使用下面命令可以看到修改信息,windows下可以直接点开看

# 查看状态
$ git status

# 查看日志
$ git log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment