This project is a Vision AI application with a Bootstrap-based user interface. Follow the steps below to initialize a Git repository, set up a .gitignore file, and push your project to GitHub.
- Open a terminal in your project directory.
- Run the following command to initialize a Git repository:
git init- Create a file named
.gitignorein your project root. - Add the following content to the
.gitignorefile to prevent unnecessary files from being tracked by Git:
plaintext
pycache/
*.pyc
venv/
.env
*.log
credentials/
secrets/
static/uploads/- Add your files to the staging area:
git add .- Commit your changes:
git commit -m "Initial commit: Vision AI App with Bootstrap UI"- Go to GitHub.
- Click on the "+" icon in the top right corner and select "New repository".
- Name your repository (e.g., "vision-ai-app").
- Choose whether to make it public or private.
- Do not initialize the repository with a README, .gitignore, or license.
- Replace
<your-username>and<repository-name>with your GitHub username and the name you gave your repository. - Run the following command to link your local repository to the GitHub repository:
git remote add origin https://github.com/<your-username>/<repository-name>.git- Push your code to GitHub:
git push -u origin master- Verify the push by going to your GitHub repository page and refreshing. You should see your code there.
- Sensitive Information: Make sure you don't push any sensitive information like API keys or credentials. Double-check your
.gitignorefile to ensure such files are not tracked. - Virtual Environment: If you're using a virtual environment, don't push it to GitHub. Instead, include a
requirements.txtfile with your project dependencies. - Project Documentation: You can create a
README.mdfile in your project root to provide information about your project, how to set it up, and how to use it.
After following these steps, your Vision AI App with the updated Bootstrap UI should be successfully pushed to GitHub. You can now easily share your project or collaborate with others.
- Open the Integrated Terminal in VS Code:
- You can open the terminal in VS Code by pressing Ctrl + ` (backtick) or by going to the menu and selecting Terminal > New Terminal.
- Navigate to Your Project Directory:
- If you're not already in your project directory, use the cd command to navigate there. For example:
cd D:\Repos\VisionAPI- Remove the .git Directory:
- Use the Remove-Item cmdlet to delete the .git directory:
Remove-Item -Recurse -Force .gitFollow these steps to create, commit changes, and push to the beta2 branch in your repository.
If the beta2 branch does not exist locally, create it:
git checkout -b beta2If you have uncommitted changes, stage and commit them:
git add .
git commit -m "Added files for beta2 branch"Push the newly created branch to the remote repository and set it to track:
git push -u origin beta2Go to your GitHub repository and check if the beta2 branch now exists and contains your changes.
If the beta2 branch already exists on GitHub but not locally:
git fetch origin
git checkout beta2Then push your changes:
git add .
git commit -m "Updated beta2 branch with new files"
git push