📁 Git Workflow

  1. Checkout to main branch. Command: git checkout main Image description ➡️ Switch to the main branch to start fresh.
  2. Create a new feature branch. Command: git checkout -b feature-24mcr042 Image description ➡️ Create and move to a new branch for your work.
  3. (Optional) Create a branch through GitHub UI. Go to GitHub → Open your repo → Click on Branch Dropdown → Type new branch name → Create branch. Image description ➡️ Useful if you prefer using GitHub's website.
  4. Check all available branches. Command: git branch Image description ➡️ List all branches in your local repo and see which branch you are on.
  5. Check the status of your changes. Commands: git status Image description ➡️ View what files are staged, unstaged, or untracked.
  6. Add all changes to staging area. Command: git add . Image description ➡️ Stage all modified or new files for committing.
  7. Commit your changes with a message. Command: git commit -m "Added hello_world.py" Image description ➡️ Save your staged changes into the local repo with a meaningful message.
  8. Push your branch to GitHub. Command: git push origin feature-24mcr042 Image description ➡️ Upload your feature branch to the remote GitHub repository. 9.Create a Pull Request on GitHub. Go to GitHub → Pull Requests → New Pull Request → Select branch → Create Pull Request → Merge Pull Request → Confirm Merge Image description Image description Image description Image description Image description Image description 🐳 Docker Workflow
  9. Check Docker version. Commands: docker --version Image description ➡️ Confirm Docker is installed and check the version.
  10. Build the Docker image. Commands docker build -t kanaga14/mca-24mcr049-ml:latest . Image description ➡️ Build a Docker image from your Dockerfile.
  11. List all Docker images. docker images Image description ➡️ See all Docker images available locally.
  12. Push Docker image to DockerHub. docker push kanaga14/mca-24mcr042-ml Image description ➡️ Upload your Docker image to your DockerHub account. 5.Open Docker Desktop (Optional). Image description ➡️ View your images and running containers through Docker’s graphical interface. 6.Run the Docker container. Image description 7.Verify running container in Docker Desktop. Image description ➡️ Use the GUI to check your running containers and images visually.