cad2025_team

  • Home
    • SMap
    • reveal
    • blog
  • About
  • HomeWork
    • 成員與工作分配
      • W3_250926
      • W7_251024
      • W10_251114
      • W14_251212
      • W17_260102
      • W18_260109
    • W3
    • W7
    • W10
      • 組裝的邏輯理念
    • W14
    • W17
    • W18
  • Note
  • GitHub
    • 協同任務
      • Cad2025作業倉儲
      • 組長將成員加入倉儲
      • 請組員提供GitHub Name
      • 請組員確認邀請
      • Deploy to GitHub Pages
      • 建立feature branches
      • 使用feature branches
      • 說明個人分支與主分支關係
      • 拉取請求(pull request)
      • Feature branch與main同步
      • 維護個人倉儲
      • Git remote
      • Git push classroom main
    • Codespaces
      • 啟動動態編輯前
      • 啟動動態編輯
      • Git push
      • 合併項目
  • 心得
    • 41323107:王瑞億
    • 41323142:楊紹凱
    • 41323145:熊有為
    • 41323148:鄭宇哲
    • 41323150:蕭日政
    • 41136123:黃育驊
Git push << Previous Next >> 心得

合併項目

rebase(合併相關)

git pull origin main --rebase #將本地尚未推送的 commit 移到遠端更新之後

#說明: 如果遠端和本地有改到同一個檔案、甚至同一行,就會出現 衝突 (conflict),Git 需要你手動選擇合併內容。與傳統的 merge 不同,歷史會更乾淨,不會產生額外的 merge commit。

git status(合併相關)

git status #查看衝突檔案

continue(合併相關)

git rebase --continue # Git 會嘗試套用下一個 commit

  • 正在進行 interactive rebase,基底是 8164a7e
  • 第一個 commit (8ff8cac) 已經套用
  • 第二個 commit (3cf2e6a) 尚未處理
  • 工作目錄乾淨,沒有未提交修改
  • HEAD 指向一個暫存 commit (bece882)

 

  • Git 會嘗試套用下一個 commit (3cf2e6a)
  • 如果沒有衝突,rebase 就會完成
  • 如果出現衝突,Git 會提示你手動解決

 

查詢端口

lsof -i :8080#查詢端口


強制停止PID進程

kill -9 2405#強制停止PID進程




Git push << Previous Next >> 心得

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