git update doc with code example