BASELINE(1) | Baseline Reference Manual | BASELINE(1) |
baseline | [add [file or dir]] [branch -c | -l | -s] [cat -c] [commit -m] [diff] [help] [init] [log -c | -f | -n] [ls -c | -R] [version] |
$ baseline version
To create a new repository in the current working directory:
$ baseline init
To add a specific file or directory to your staging area:
Or, to add all files and directories to your staging area:$ baseline add <filename>
$ baseline add .
To commit your staged changes:
If the -m flag was omitted, baseline will:$ baseline commit -m 'my commit message'
To display a diff or generate a patch between a commit and its parent:
To display a diff between any two commits:$ baseline diff <commit id>
$ baseline diff <commit A id> <commit B id>
To list all commits:
To list all commits starting from a specific commit:$ baseline log
To limit the number of commits being displayed:$ baseline log -c <commit id>
To format the output of log command:$ baseline log -n <number of commits>
Currently the log command supports the following specifiers for each commit:$ baseline log -f <format>
To list files and directories:
To recursively list files and directories:$ baseline ls
To list file and directories for a specific commit:$ baseline ls -R
$ baseline -c <commit id>
To get the content of a certain file written to the stdout:
You can easily redirect the output to any other file:$ baseline cat </path/to/file>
To get the content of a certain file within a certain commit:$ baseline cat </path/to/file> > myfile.txt
$ baseline cat -c <commit id> </path/to/file>
To find the name of the current branch:
To list all the available branches:$ baseline branch
To create a new branch from the current branch:$ baseline branch -l
To switch branches:$ baseline branch -c <branch name>
$ baseline branch -s <branch name>
December 4, 2014 | OpenBSD 5.6 |