From 33377839d851ede988a67d36279912cb37b349c3 Mon Sep 17 00:00:00 2001 From: FAQ Bot Date: Sun, 6 Sep 2026 10:50:11 +0000 Subject: [PATCH 1/2] NEW: How do I create an empty GitHub repository, clone it, add files, commit, --- ...empty-repo-clone-add-commit-push-github.md | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 _questions/ai-dev-tools-zoomcamp/misc/006_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md diff --git a/_questions/ai-dev-tools-zoomcamp/misc/006_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md b/_questions/ai-dev-tools-zoomcamp/misc/006_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md new file mode 100644 index 00000000..e7ef9213 --- /dev/null +++ b/_questions/ai-dev-tools-zoomcamp/misc/006_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md @@ -0,0 +1,48 @@ +--- +id: 9bd2b3c09d +question: How do I create an empty GitHub repository, clone it, add files, commit, + and push? +sort_order: 6 +--- + +Do this step-by-step from your terminal: + +1. Create a local folder (or use your existing project folder). + +2. Create an empty repository on GitHub: + - Go to GitHub → New repository. + - Choose public/private. + - Create it without adding a README (so it stays “empty”). + +3. Clone the empty repo to your machine: + - Copy the repo URL from GitHub (HTTPS). + - Run: + + ```bash + git clone https://github.com/USERNAME/REPO.git + cd REPO + ``` + + (If your code is already in another folder, you can instead `git init` there, but cloning is the simplest for a truly empty repo.) + +4. Copy (or move) your files into the cloned folder (the `REPO/` directory). + +5. Stage files: + + ```bash + git add . + ``` + +6. Commit: + + ```bash + git commit -m "Add project files" + ``` + +7. Push to GitHub (replace `main` if your branch name differs): + + ```bash + git push -u origin main + ``` + +If you hit an authentication prompt on push, use the credentials method recommended by GitHub (now typically a GitHub token instead of a password). \ No newline at end of file From 6b40325f656267be3201410ff52adfab1ada39ea Mon Sep 17 00:00:00 2001 From: Alexey Grigorev Date: Wed, 9 Sep 2026 15:25:23 +0200 Subject: [PATCH 2/2] Repoint git-workflow FAQ to 01-ai-native-workflow/014, fix sort order (#374) --- ...2b3c09d_create-empty-repo-clone-add-commit-push-github.md} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename _questions/ai-dev-tools-zoomcamp/{misc/006_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md => 01-ai-native-workflow/014_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md} (97%) diff --git a/_questions/ai-dev-tools-zoomcamp/misc/006_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md b/_questions/ai-dev-tools-zoomcamp/01-ai-native-workflow/014_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md similarity index 97% rename from _questions/ai-dev-tools-zoomcamp/misc/006_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md rename to _questions/ai-dev-tools-zoomcamp/01-ai-native-workflow/014_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md index e7ef9213..92dcece5 100644 --- a/_questions/ai-dev-tools-zoomcamp/misc/006_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md +++ b/_questions/ai-dev-tools-zoomcamp/01-ai-native-workflow/014_9bd2b3c09d_create-empty-repo-clone-add-commit-push-github.md @@ -2,7 +2,7 @@ id: 9bd2b3c09d question: How do I create an empty GitHub repository, clone it, add files, commit, and push? -sort_order: 6 +sort_order: 14 --- Do this step-by-step from your terminal: @@ -45,4 +45,4 @@ Do this step-by-step from your terminal: git push -u origin main ``` -If you hit an authentication prompt on push, use the credentials method recommended by GitHub (now typically a GitHub token instead of a password). \ No newline at end of file +If you hit an authentication prompt on push, use the credentials method recommended by GitHub (now typically a GitHub token instead of a password).