Skip to content

Instantly share code, notes, and snippets.

View LarryLuTW's full-sized avatar
🏠
Working from home

Larry Lu LarryLuTW

🏠
Working from home
View GitHub Profile
@LarryLuTW
LarryLuTW / git.md
Last active March 30, 2017 11:25 — forked from w5151381guy/git.md

git 基本觀念

  1. git 為一種版本控制軟體,所謂版本控制就是你可以針對在檔案中,你曾經動過的地方做控管,也就是說你可以隨時回到之前的版本中
  2. 為了達到第一點的方便性,請在做完一個段落後進行 commit,commit 的內容一定要寫得相當清楚,否則你會不知道你曾經改過甚麼東西
  3. 在 commit 之前需先將改過的東西加到 staging area,然後再用 commit 進行提交
  4. 養成一個好習慣,在準備將檔案上傳(push)到 server 前,記得先檢查一下狀態,語法會在底下說明

git 基本語法