Skip to content
Vincent Bernat edited this page Apr 29, 2019 · 7 revisions

How to extract configurations from bare git repository

root@oxidize:~# cd /etc/oxidized/git-reports/Rotuers.git
root@oxidize:/etc/oxidized/git-repos/Routers.git# git worktree list --porcelain
worktree /etc/oxidized/git-repos/Routers.git
bare

root@oxidize:/etc/oxidized/git-repos/Routers.git# git worktree add --checkout ../test
Preparing ../test (identifier test)
HEAD is now at c1f66627
root@oxidize:/etc/oxidized/git-repos/Routers.git# ls -l ../test
total 21M
drwxr-x--- 2 root root 28K Jan 31 15:03 .
drwx------ 12 root root 4.0K Jan 31 14:53 ..
-rw-r----- 1 root root 160 Jan 31 14:48 192.168.180.160
-rw-r----- 1 root root 160 Jan 31 14:48 192.168.180.161
-rw-r----- 1 root root 22K Jan 31 15:03 6450sw514a.lax1
-rw-r----- 1 root root 55K Jan 31 15:03 6610sw01a.phx1
-rw-r----- 1 root root 20K Jan 31 15:03 6610sw19a.phx1
-rw-r----- 1 root root 21K Jan 31 15:03 7450sw20a.phx1
-rw-r----- 1 root root 26K Jan 31 15:03 7750sw01a.phx1
-rw-r----- 1 root root 26K Jan 31 15:03 7750sw01b.phx1
-rw-r----- 1 root root 24K Jan 31 15:03 7750sw1007ab.lax10
-rw-r----- 1 root root 25K Jan 31 15:03 7750sw20a.phx1
-rw-r----- 1 root root 25K Jan 31 15:03 7750sw20b.phx1
-rw-r----- 1 root root 24K Jan 31 15:03 7750sw407.iad2
-rw-r----- 1 root root 31K Jan 31 15:03 asw108.lax10
Clone this wiki locally