乾合併
--no-ff 不要快速合併
--no-commit 不要直接發 commit ,先進暫存
1 | git merge master --no-commit --no-ff |
1 | git merge main --no-commit --no-ff |
Local
當 Remote Branch 被刪除時,僅用來刪除 Local 殘留的 origin branch
1 | git branch -r -d origin/1-branch |
Remote
檢視 Remote 路徑
1 | git remote -v |
1 | git remote set-url origin {URL} |
1 | git fetch --tags -f |
1 | git push origin main:1-branch --force |
Worktree
建立 Branch 並另開工作目錄
1 | git worktree add -b worktree_branch ../worktree_folder master |
1 | git worktree list |
1 | git worktree prune |
沒有留言:
張貼留言