Most vital big difference is that the 2nd expression erases the kind of the exception. And also the exception sort plays an important part in catching exceptions: I think I ran into the identical dilemma. In case you started a local git repository but have not arrange a distant git challenge and need to press your local undertaking to to git job