Something went wrong. Try again.
my code lab
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117.Dd July 8, 2026.Dt CELL 1.Os.Sh NAME.Nm cell.Nd manage a shared .cell bare repo and its jj checkouts.Sh SYNOPSIS.Nm.Cm init.Ar src.Nm.Cm new.Ar name.Nm.Cm resume.Ar name.Sh DESCRIPTION.Nmencodes a simple convention: a.Pa .celldirectory holds one shared bare git repository,.Pa default.git ,and each cell is its own colocated.Xr jj 1checkout of it..Ss cell init.Nm.Cm initbare-clones.Ar srcinto.Pa .cell/default.git .The result is a standalone bare repo, disconnected from the repo itwas seeded from.Only the.Ar srcdefault branch is cloned; every other branch.Pa default.gitlater holds is one pushed by a cell..Nmfails if.Pa .cell/default.gitalready exists..Ss cell new.Nm.Cm newwalks up from the current directory to the nearest ancestor thatholds a.Pa .celldirectory, then clones.Pa default.gitinto a sibling colocated jj checkout at.Ar name Ns .jj ,wired to.Pa default.gitas its.Va origin .A cell pushes its work to a branch named for the cell, so.Ar namemust not collide with a branch already in.Pa default.git ..Nmfails if no.Pa .celldirectory is found, if the one found holds no.Pa default.git ,if.Ar name Ns .jjalready exists, or if.Pa default.gitalready has a branch.Ar name ;resume that cell with.Cm cell resumeinstead..Ss cell resume.Nm.Cm resumeis the counterpart to.Cm newfor a cell that was pushed and had its checkout removed, leaving onlyits branch in.Pa default.git .It clones.Pa default.gitinto.Ar name Ns .jj ,tracks the existing branch.Ar name ,and sets the working copy on it..Nmfails if no.Pa .celldirectory is found, if the one found holds no.Pa default.git ,if.Ar name Ns .jjalready exists, or if.Pa default.githas no branch.Ar name ..Sh EXIT STATUS.Ex -std.Nmexits 64 on usage errors..Sh EXAMPLESSeed a.Pa .cellin the current directory from an existing checkout, then start acell:.Bd -literal -offset indentcell init path/to/default.jj/.gitcell new foo.Ed.Sh SEE ALSO.Xr jj 1