0% found this document useful (0 votes)
0 views

Step

This document provides a step-by-step guide for adding and pushing files to a GitHub repository using Command Prompt. It includes instructions for cloning the repository, switching branches, copying files, staging changes, committing with a message, and pushing changes to the remote repository. Each step is detailed to ensure successful execution of the process.

Uploaded by

nahigreat4
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Step

This document provides a step-by-step guide for adding and pushing files to a GitHub repository using Command Prompt. It includes instructions for cloning the repository, switching branches, copying files, staging changes, committing with a message, and pushing changes to the remote repository. Each step is detailed to ensure successful execution of the process.

Uploaded by

nahigreat4
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Step-by-Step Guide: Adding and Pushing

Files to GitHub
1. Open Command Prompt (CMD)
 To start, open the Command Prompt on your computer.
 Search for "cmd" in the Start menu and click on the Command Prompt application.

2. Clone the Repository


 Use the following command to clone the repository to your local machine:
 git clone "URL"
 Where Does the URL Come From?
o The URL is the link to the GitHub repository.
o To find it, go to the GitHub repository page, click the "Code" button, and copy
the HTTPS URL (e.g., https://github.com/username/repository-
name.git).
o Replace "URL" in the command with the copied link.

3. Switch to the Models Branch


 Navigate into the project directory:
 cd Smart_Personal_Budget_Planner
 Switch to the Models branch:
 git switch Models
 Note: If you just cloned the repository, you may already be on the Models branch. Check
your current branch with:
 git branch

4. Copy and Paste Files


 Copy the image and file you received via Telegram into the mdd folder inside the project
directory.
 Steps:
1. Open the folder where you cloned the repository.
(e.g., C:\Users\Kbrom\Smart Personal Budget Planner\
Smart_Personal_Budget_Planner)
2. Locate the mdd folder.
3. Paste the files from your Telegram downloads into the mdd folder.

5. Go Back to Command Prompt


 After copying the files, return to Command Prompt (CMD).

6. Stage Your Changes


 Run the following command to stage all changes (new, modified, or deleted files):
 git add .

7. Commit Your Changes


 Commit the staged changes with a descriptive message:
 git commit -m "Add initial use case diagram and related images to MDD
folder"
 Tip: Modify the commit message to accurately describe your changes.

8. Push Changes to the Remote Repository


 Push the committed changes to the Models branch on GitHub:
 git push origin Models

You might also like