DEV Community

Faisal Ahmed
Faisal Ahmed

Posted on

Transfer assignment private repo to your github private repo

  • first e ekta folder create korte hobe and sei folder e insert thakte hobe.
  • then, cmd te giye oi path e type korte hobe:
  • git clone --bare https://github.com/othersrepo
  • bare er pore j github theke nite cassi, sei link ta hobe.
  • then dekhbo, oi folder e github er file ta time soho clone hoyeche.
  • then, j folder ta clone hoyeche, se folder er vitore insert korbo.
  • then, cmd te oi folder e path e jabo.
  • er moddhe github e ekta repository ta khule felbo, se tar path ta copy korbo.
  • cmd te ei code ta likhbo:
  • git push --mirror https://github.com/webfaisalbd/newRepo.git
  • mirror er por path ta dibo hosse, jei repo te add korte cassi.

  • git remote -v

  • git remote set-url origin https://github.com/webfaisalbd/newRepo.git

  • git remote -v

Top comments (0)