Skip to content

Latest commit

 

History

History
90 lines (51 loc) · 1.98 KB

my git practice.md

File metadata and controls

90 lines (51 loc) · 1.98 KB

my git practice

  • 基礎篇

    1. 建立commit git commit -a git commit -a image-20201217145908857

    -a, --all commit all changed files

    遇到一些問題

    Please enter the commit message for your changes. Lines starting

    '#' with '#' will be ignored, and an empty message aborts the commit.

    1. i 或insert 進入編輯模式 i 是插入 s是刪除並插入 a是往後一格開始插入 o是往下一行開始插入 O是往上一行開始插入
    2. 所有註解想留就留 也可以刪除
    3. esc 離開編輯模式
    4. 沒有行數感到焦慮的時候 :set nu
    5. 输入":wq",注意是冒號+wq 在enter就好image-20201217160224925
    6. hen 棒诶 image-20201217160800278
    7. 瞧瞧手動commit image-20201217161037908

    添加comment

    也可以使用-m 即 git commit -m "寫一下comment",就不會再出現提示了

    下一步之前

    但首先我要先把這裡得東西commit好 : git commit -a -m "目前的內容我先commit"

    發現圖片檔好像不會上git

    image-20201217162533442

    1. 建立 git branch

      開支線之前 本地 git push

      git branch bugFix git checkout bugFix

      好像沒有什麼問題

      image-20201217162822537

      也可以從gui看到切好了

      image-20201217162921933

    2. git 中的merge

    3. 反正就是有一些修改

  • 進階篇

    1. 1
    2. 2
  • 調整提交順序

    1. 1
    2. 2
  • 活用 git 指令

    1. 1
    2. 2
  • 進階 主題

    1. 1
    2. 2