Git 初學文件整理

Git 是套版本控制系統, 初學且最常用的, 就是官方網站的那兩個範例.(下述兩個取自官方範例)

Cloning and Creating a Patch (從外面複製一份 git, 修改後並產生一份 Patch.)

  1. $ git clone git://github.com/git/hello-world.git
  2. $ cd hello-world
  3. $ (edit files) # touch index.html
  4. $ git add (files) # 或 git add .
  5. $ git commit -m 'Explain what I changed'
  6. $ git format-patch origin/master # 產生 Patch => "0001-Explain-what-I-changed.patch"

Creating and Commiting (快速建立 Local Repository)

  1. $ cd (project-directory)
  2. $ git init
  3. $ (add some files) # touch index.html
  4. $ git add .
  5. $ git commit -m 'Initial commit'

要再深入學習, 可見下述文件資料.

教學文件

Git 說明文件

GitHub 文件

Git 教學影片

Git 小抄

GIT 與 SVN 指令對照

相關網頁



延伸閱讀

This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

About Tsung

對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.
This entry was posted in My_Note-Unix and tagged . Bookmark the permalink.

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>