This document outlines the commands used to initialize the local repository and the steps required to push it to GitHub.
The following commands have been run locally to prepare your project:
-
Initialize Git Repository:
git init
-
Configure Local Identity (Temporary): (Note: You can change these to your actual GitHub details).
git config user.email "[email protected]" git config user.name "Ordera User"
-
Stage All Files:
git add . -
Initial Commit:
git commit -m "Initial commit: Multi-tenant Restaurant System"
Since I cannot access your GitHub account directly, please follow these steps to push the code:
- Go to github.com/new.
- Name your repository (e.g.,
Ordera). - Leave it Public or Private as per your preference.
- Do not initialize with a README, license, or .gitignore (we already have them).
- Click Create repository.
Copy the URL of your new repository and run the following commands in your terminal:
# Replace <YOUR_REMOTE_URL> with the URL from GitHub
git remote add origin <YOUR_REMOTE_URL>
# Rename branch to main (standard)
git branch -M main
# Push the code
git push -u origin main| Command | Description |
|---|---|
git status |
Check which files are modified/staged. |
git add <file> |
Stage a specific file. |
git commit -m "msg" |
Save your staged changes with a message. |
git pull origin main |
Download latest changes from GitHub. |
git push |
Upload your committed changes to GitHub. |
git log --oneline |
View a brief history of commits. |
I have already created a .gitignore file for you. It ensures that large or sensitive files like your Virtual Environment (venv/), Databases (*.db), and Cache files are not uploaded to GitHub.