Add "Retry" button for Pull

retry push made by ch3cooli is 0198ef842fa6be053aa05f94620c7f956a333659

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>
Refactored for Switch command

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>