refine the interactive process
use DFS than BFS of git search