Actions

EmSys

Git - Working with Remote Repositories

From EdWiki

Git - Working With Remote Repositories

  • Give remote repo a nicer name
$ git remote add shukra gituser@shukra.cedt.iisc.ernet.in:/opt/gitrepo/my_project
  • Fetch changes from shukra
git fetch shukra
  • Merge with the master branch of shukra's repo
git merge shukra/master
  • Or in one shot
git pull shukra