git set remote branch same as locsl code example Example: add remote branch git git remote add github git://github.com/jdoe/coolapp.git git fetch github