Tao 1 private Folder tu public Folder

Gia su co public github folder:

https://github.com/PX4/Firmware.git

Can tao 1 private folder tren tai khoan github, voi noi dung cua public folder do, sau do thuc hien phat trien

Can thuc hien nhu sau:

  1. Trong tai khoan github.com, tao ra 1 repositoire moi, vi du co ten goi la AUVFirmware2

Chon options: Private, va co the chon Initilize this repository with a README

  1. OpenTerminal.

  2. Create a bare clone of the repository.

    git clone --bare https://github.com/PX4/Firmware.git
  3. Mirror-push to the new repository.

    cd Firmware.git
    git push --mirror https://github.com/lamhung81/AUVFirmware2.git
  4. Remove the temporary local repository you created in step 1.

    cd ..
    rm -rf Firmware.git
  5. Clone the private repo to work on it:

git clone https://github.com/lamhung81/AUVFirmware2.git

Tu day co the thuc hien viec phat trien code binh thuong.

Toan bo noi dung duoc tham khao tu : https://stackoverflow.com/questions/10065526/github-how-to-make-a-fork-of-public-repository-private

Last updated

Was this helpful?