diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2007-11-06 00:22:17 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2007-11-06 00:22:17 -0500 |
commit | ad42e0dc96cf26d28803fcd62df6ff21618d50fc (patch) | |
tree | 9a14f6800883514b20b8f2994487e95e7b7a258c /README | |
parent | a9c4fe62edabb7dbb4970edbe15ba6ed146eba1a (diff) |
reorg tutorial
Diffstat (limited to 'README')
-rw-r--r-- | README | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -60,24 +60,24 @@ contains such special files. ## tutorial -A quick walkthrough of using etckeeper. +A quick walkthrough of using etckeeper. The `etckeeper init` command +initialises an /etc/.git/ repository. This command is careful to never +overwrite existing files or directories in /etc. It will create a `.gitignore` +if one doesn't already exist, sets up git hooks if they don't already exist, +and so on. It does *not* commit any files into to git, but does `git-add` all +interesting files for an initial commit. etckeeper init -The `etckeeper init` command initialises an /etc/.git/ repository. This -command is careful to never overwrite existing files or directories in -/etc. It will create a `.gitignore` if one doesn't already exist, sets up -git hooks if they don't already exist, and so on. It does *not* commit any -files into to git, but does `git-add` all interesting files for an initial -commit. So you might want to use git status to check that it includes all +Now you might want to use git status to check that it includes all the right files, and none of the wrong files. And you can edit the -.gitignore and so forth. Once you're ready: +.gitignore and so forth. Once you're ready, it's time to commit: cd /etc git commit -m "initial checkin" git gc # pack git repo to save a lot of space -After this first checkin, you can use regular git commands to check in +After this first commit, you can use regular git commands to handle further changes: passwd someuser |