Refactoring fix

Have ls-remote works
Have fetch/clone works
Git push still have problems (WIP)