git add,commit, snapshot work in linux