update post (git assume-unchanged tracking)
This commit is contained in:
parent
ff46671357
commit
dac18235b8
1 changed files with 13 additions and 1 deletions
|
@ -4,7 +4,7 @@ title = 'Stop tracking changes of a file with git'
|
|||
summary = '''Don't overuse this; it could get a bit more complicated to track
|
||||
down errors when ignoring changes of files...'''
|
||||
date = '2023-06-04T18:00:51+02:00'
|
||||
# lastmod = ''
|
||||
lastmod = '2023-08-12T06:49:28+0000'
|
||||
categories = [ 'computerstuff' ]
|
||||
tags = [ 'git', 'linux', 'freebsd' ]
|
||||
|
||||
|
@ -28,3 +28,15 @@ $ git update-index --no-assume-unchanged <filename>
|
|||
|
||||
Source: <https://stackoverflow.com/a/23673910>
|
||||
|
||||
## List untracked files
|
||||
|
||||
To list all files with the assumed-unchanged bit set, run this command.
|
||||
|
||||
```console
|
||||
$ git ls-files -v | grep "^h"
|
||||
h go.mod
|
||||
h go.sum
|
||||
```
|
||||
|
||||
The lowercase <kbd>h</kbd> indicates that.
|
||||
|
||||
|
|
Loading…
Reference in a new issue