From 39693dcaff514f14efcc9fd9e3ceee449405936a Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sun, 12 Sep 2021 00:25:53 -0700 Subject: [PATCH] docs: update git-comparison doc with help about working with branches --- docs/git-comparison.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/git-comparison.md b/docs/git-comparison.md index fb77c3e4e..9c3531682 100644 --- a/docs/git-comparison.md +++ b/docs/git-comparison.md @@ -151,6 +151,31 @@ commit), but that's left out of the table to keep it simple. For example, echo resolved > filename; git add filename; git rebase/merge/cherry-pick --continue + + List branches + jj branches + git branch + + + Create a branch + jj branch <name> -r <revision> + git branch <name> <revision> + + + Move a branch forward + jj branch <name> -r <revision> + git branch -f <name> <revision> + + + Move a branch backward or sideways + jj branch <name> -r <revision> --allow-backwards + git branch -f <name> <revision> + + + Delete a branch + jj branch --delete <name> + git branch --delete <name> + See log of operations performed on the repo jj op log