Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
iesahin committed Oct 13, 2023
1 parent a56bcab commit bc33935
Showing 1 changed file with 25 additions and 48 deletions.
73 changes: 25 additions & 48 deletions book/src/how-to/turn-off-git-automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,39 +54,25 @@ The commit message includes the command you gave to run to find the exact change
If you don't track a file with Xvc, they are not added to `.gitignore` and you can see them with `git status`.

```console
$ git status
On branch main
Untracked files:
(use "git add <file>..." to include in what will be committed)
dir-0001/file-0002.bin
dir-0001/file-0003.bin

nothing added to commit but untracked files present (use "git add" to track)
$ git status -s
?? dir-0001/file-0002.bin
?? dir-0001/file-0003.bin

```
If you want to skip this automated Git operations, you can add `--skip-git` flag to commands.

```console
$ xvc --skip-git file track dir-0001/file-0002.bin

$ git status
On branch main
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: dir-0001/.gitignore

Untracked files:
(use "git add <file>..." to include in what will be committed)
.xvc/ec/[..]
.xvc/store/content-digest-store/[..].json
.xvc/store/file-text-or-binary-store/[..].json
.xvc/store/recheck-method-store/[..].json
.xvc/store/xvc-metadata-store/[..].json
.xvc/store/xvc-path-store/[..].json
dir-0001/file-0003.bin

no changes added to commit (use "git add" and/or "git commit -a")
$ git status -s
M dir-0001/.gitignore
?? .xvc/ec/[..]
?? .xvc/store/[..]
?? .xvc/store/[..]
?? .xvc/store/[..]
?? .xvc/store/[..]
?? .xvc/store/[..]
?? dir-0001/file-0003.bin

```

Expand All @@ -109,11 +95,11 @@ $ git commit -m "Began to track dir-0001/file-0002.bin with Xvc"
[main [..]] Began to track dir-0001/file-0002.bin with Xvc
7 files changed, 8 insertions(+)
create mode 100644 .xvc/ec/[..]
create mode 100644 .xvc/store/content-digest-store/[..].json
create mode 100644 .xvc/store/file-text-or-binary-store/[..].json
create mode 100644 .xvc/store/recheck-method-store/[..].json
create mode 100644 .xvc/store/xvc-metadata-store/[..].json
create mode 100644 .xvc/store/xvc-path-store/[..].json
create mode 100644 .xvc/store/[..].json
create mode 100644 .xvc/store/[..].json
create mode 100644 .xvc/store/[..].json
create mode 100644 .xvc/store/[..].json
create mode 100644 .xvc/store/[..].json
```

Expand All @@ -123,22 +109,13 @@ If you never want Xvc to handle commits, you can set `git.use_git` option in
```console
$ XVC_git.use_git=false xvc file track dir-0001/file-0003.bin

$ git status
On branch main
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: dir-0001/.gitignore

Untracked files:
(use "git add <file>..." to include in what will be committed)
.xvc/ec/[..]
.xvc/store/content-digest-store/[..].json
.xvc/store/file-text-or-binary-store/[..].json
.xvc/store/recheck-method-store/[..].json
.xvc/store/xvc-metadata-store/[..].json
.xvc/store/xvc-path-store/[..].json

no changes added to commit (use "git add" and/or "git commit -a")
$ git status -s
M dir-0001/.gitignore
?? .xvc/ec/[..]
?? .xvc/store/[..]
?? .xvc/store/[..]
?? .xvc/store/[..]
?? .xvc/store/[..]
?? .xvc/store/[..]

```

0 comments on commit bc33935

Please sign in to comment.