fix test. still need to impl mem-repo
add git repo
update test, add funtional way of 'update' opt on file