Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

📖 Git Practice Note

關係圖

  • Working Directory 工作目錄
  • Staging Area 暫存區
  • Repository 儲存庫

檔案狀態

  • Untracked 未追蹤
  • Staged 已暫存
  • Committed 已提交
  • Modified 已修改

基本指令

  • git init 初始化 Git 庫
  • git clone 下載遠端 Git 庫
  • git add 添加檔案到暫存區
    • -a 全部檔案
  • git status 查看檔案狀態
  • git commit 暫存區建立新版本
    • -m 一行訊息
  • git log 查詢版本
    • --oneline 一行顯示
  • git push 上傳新版本到儲存庫

Branch 分支

  • git branch 查看現有分支
    • -v 查看當前分支詳細資訊
    • -d 刪除分支
    • -D 強制刪除分支
  • git checkout 切換分支
    • -b 建立新分支並切換
  • git merge 合併分支並建立新版本

About

練習 Git 指令操作,並且筆記起來!

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors