# 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

![](/files/-M6K6GRCAilBTwogPOZJ)

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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lamhung81-2.gitbook.io/github-basic-tutorial/tao-1-private-folder-tu-public-folder-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
