40923123 cp2020

  • Home
    • Site Map
    • reveal
    • blog
  • 首頁
  • 第一組組員
  • git指令表
  • HW1
    • unit 1 succeeding PC Hardware
      • What You Need to Know About the Course
      • About These Materials
    • unit2 hardware basice
      • PCH1 The Basics
      • PCH2 Procedures and Safety
      • PCH3 Customer Relations
  • python variable
    • keywords
      • input
      • print
    • 變數及基本運算
      • assign 指定
    • Dictionary 字典
  • 問題排除
    • 1 heading問題
    • 2 提醒
    • 3 user內容的方式
    • 4 github page not updating
    • 5 網站編輯器無法開啟
    • 6 usb的問題總結
    • 7 同學大部分的問題和集 舊版
  • 教學歷程
    • W1至W8
    • W8 test
    • W9
  • HW2
    • HW2之1
    • HW2之2
    • HW2之3
  • 同學的問題集中串
  • 打開動態網站的方法
  • pyrhon學習網站
    • 英文
    • 中文
第一組組員 << Previous Next >> HW1

git指令表

  • git init

    建立新的本地端 Repository。

  • git clone [Repository URL]

    複製遠端的 Repository 檔案到本地端。

  • git status

    檢查本地端檔案異動狀態。

  • git add [檔案或資料夾]

    將指定的檔案(或資料夾)加入版本控制。用 git add . 可加入全部。

  • git commit

    提交(commit)目前的異動。

  • git commit -m "提交說明內容"

    提交(commit)目前的異動並透過 -m 參數設定摘要說明文字。

  • git stash

    獲取目前工作目錄的 dirty state,並保存到一個未完成變更的 stack,以方便隨時回復至當初的 state。

  • git log

    查看先前的 commit 記錄。

  • git push

    將本地端 Repository 的 commit 發佈到遠端。

  • git push origin [BRANCH_NAME]

    發佈至遠端指定的分支(Branch)

  • git branch

    查看分支。

  • git branch [BRANCH_NAME]

    建立分支。

  • git checkout [BRANCH_NAME]

    取出指定的分支。

  • git checkout -b [BRANCH_NAME]

    建立並跳到該分支。

  • git branch -D [BRANCH_NAME]

    強制刪除指定分支(須先切換至其他分支再做刪除)。

  • git reset --hard [HASH]

    強制恢復到指定的 commit(透過 Hash 值)。

  • git checkout [HASH]

    切換到指定的 commit(與 git checkout [BRANCH_NAME] 相同)。

  • git branch -m <OLD_BRANCH_NAME> <NEW_BRANCH_NAME>

    修改分支名稱。


第一組組員 << Previous Next >> HW1

Copyright © All rights reserved | This template is made with by Colorlib