How do I…?
Short answers to the things people most often need to do. Find yours in the list on the right, or press / to search.
Search for a command to run…
Short answers to the things people most often need to do. Find yours in the list on the right, or press / to search.
cd my-folderzev initzev add .zev commit -m "First version"zev clone owner/projectThe repository page on Zaryn shows this command with the right address.
zev login zaryn.xyz --register your-name --email you@example.com # once per computerzev newzev pushzev status # which fileszev diff # which linesStage just those files, then commit:
zev add src/login.js src/login.csszev commit -m "Fix the login form"Everything else stays changed but uncommitted.
zev diff --stagedzev log --onelinezev show 47bec4f5zev blame path/to/fileEach line shows the commit and author that last changed it. Then zev show <commit> shows the whole change.
zev restore path/to/fileThe file goes back to how it was in the last commit. Those edits are gone for good, so stash them first if you're not sure.
zev restore .New files that were never added stay; delete them yourself if you don't want them.
zev restore --staged path/to/fileYour edits stay in the file; it just won't be in the next commit.
zev stash save "what I was doing"# ...do something else, switch branches, pull...zev stash popIf it was in the last commit:
zev restore path/to/filezev can't switch your folder to an old commit yet, but you can look at any commit without changing your files:
zev show <commit> # what that commit changedzev diff <commit> HEAD -- file # how a file differs between then and nowzev doesn't rewrite commits you've made. Make a new commit that undoes it: restore the files as you want them, then commit. zev diff <commit>~1 <commit> shows exactly what that commit changed, so you know what to undo.
zev rm path/to/filezev commit -m "Remove the old file"Or delete it however you like, then zev add path/to/file (or zev add .) to stage the deletion.
Rename it normally, then stage both the old and the new name:
mv old-name.txt new-name.txtzev add old-name.txt new-name.txtzev commit -m "Rename old-name to new-name"zev add . stages both at once too.
For example, a settings file with passwords that you committed by mistake:
zev rm --cached .envecho ".env" >> .zevignorezev add .zevignorezev commit -m "Stop tracking .env"If it held real secrets and you already pushed, change those secrets: they are still in the history.
Create a .zevignore file in the top folder of the project, one pattern per line:
node_modules/dist/*.log.envzev status and zev add . skip ignored files. Commit .zevignore so your teammates ignore the same files. zev new writes a sensible one for the main language you pick.
zev checkout -b my-featureCommit as usual; main doesn't change until you merge.
zev stashzev checkout other-branch# ...later...zev checkout my-featurezev stash popzev checkout mainzev merge my-featurezev merge my-feature --resolve# edit the files it lists: keep what you want between <<<<<<< and >>>>>>>, delete the markerszev add .zev merge --continueFull walk-through: When both changed the same lines.
zev tag v1.0zev pullzev pushzev checkout -b fix-headerzev commit -m "Fix the header on phones"zev pushzev przev fork-repo owner/project --clonecd project# ...commit your change...zev pushzev przev issue --title "Search ignores accents" --desc "Searching café doesn't find cafe"Or open an issue on the repository's page on Zaryn.
Open Storage in the top menu, drop the file on Upload a file, then press Copy link. Anyone with the link can open it, so only share files that aren't private. More in Storing and sharing files.
Open the repository and press ⚙ Settings (for a topology repository, on its network overview). At the bottom, under Danger zone, type the repository's name and press Delete this repository. Its history, branches, pull requests, issues and every file stored for it are removed, and it can't be undone. Its owner can do this, and so can an owner or admin of its organization.
The bars at the top of Storage show repositories, files and packages against your plan.
zev self updateIf you installed it with apt, dnf, zypper or pacman, your system's normal update does it (zev self update tells you the command).
zev helpzev help stashOr see All commands.