Copying a git repository to USB drive

后端 未结 4 1033
暖寄归人
暖寄归人 2021-02-13 17:27

I am working on an Open Source project and I have a git repo on my machine with all the code. The repo is kind of big, and I would like to keep working on it while I do not have

4条回答
  •  [愿得一人]
    2021-02-13 18:00

    I was facing the same situation as you. After some digging, I cloned the repo onto my usb drive, then cloned the repo from the usb to the other computer; and then changed the remote for the repo on the new computer using: git remote set-url origin

    You can make sure the origin you added is correct using:

    1. git remote -v, or,
    2. git log, to make sure you can see the commits made on the original repo

提交回复
热议问题