-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_new_file_orginal_repo.cpp
42 lines (23 loc) · 1.69 KB
/
my_new_file_orginal_repo.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
here are the steps to import a repository privately from a public repository on GitHub:
Navigate to GitHub and sign in to your account.
Click on the "+" icon at the top right corner of the page, next to your profile picture, and select "Import repository".
In the "Your old repository’s clone URL" field, enter the URL of the public repository you want to import.
Choose a name for your new repository.
Under "Privacy", select "Private" to make your new repository private.
Click "Begin import" to start the import process.
Please note that the import process can take some time depending on the size of the repository. You will receive an email when the import is complete.
If you want to do this using the command line, you can clone the public repository to your local machine, create a new private repository on GitHub, and then push the local repository to the new private repository. Here's how you can do it:
In this example, replace https://github.com/username/public-repo.git with the URL of the public repository, and https://github.com/username/private-repo.git with the URL of your new private repository.
# Clone the public repository to your local machine
git clone https://github.com/username/public-repo.git
# Navigate to the local repository
cd public-repo
# Create a new private repository on GitHub
# Add the URL of the new private repository as a remote
git remote add private https://github.com/username/private-repo.git
# Push the local repository to the new private repository
git push -u private master
###########################################
Line added into master branch, my_new_file_original_repo.cpp and repo is zephyr_app
###########################################
my new changes