跳到主要內容

Git 初學文件整理

https://blog.longwin.com.tw/2009/05/git-learn-initial-document-2009/

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 指令對照

相關網頁

留言

這個網誌中的熱門文章

Effortless English - MP3 Free Download ( 167 )

Effortless English - MP3 Free Download ( 167 ) You can download here free AJ Hoge's podcasts, upload them to your mp3 player and improve your English listening at least 30 minutes everyday. To download mp3 click right button of your mouse and select "Save as". Click here to go to the official Effortless English website! General: Power_English_Update.mp3 Models_Etc.mp3 Audio_Twitter_Tweets.mp3 AJ_Update.mp3 Hitch_1_Commentary.mp3 Hitch_1.mp3 Hitch_1_MS-POV.mp3 Hitch_1_MS.mp3 Hitch_1_Vocab.mp3 English_Mastery_Formula.mp3 New_English_Club.mp3 Learn_English_Naturally.mp3 Back_Home.mp3 The_Best_Investment.mp3 Seminar_In_Bangkok_Jan25.mp3 New_Year_Resolution.mp3 Subconscious_Learning.mp3 Intensely.mp3 Super_Fast.mp3 English_Learning_Psychology.mp3 English_Club_2.mp3 Your_First_Lesson.mp3 Business_English_For_New_Business.mp3 Learn_English_Conversation.mp3 Learn_English_Grammar.mp3 Business_vs_Self-Employment.mp3 Learn_Business_English_Eff...