π Git Workflow
- Checkout to main branch.
Command:
git checkout main
β‘οΈ Switch to the main branch to start fresh. - Create a new feature branch.
Command:
git checkout -b feature-24mcr042
β‘οΈ Create and move to a new branch for your work. - (Optional) Create a branch through GitHub UI.
Go to GitHub β Open your repo β Click on Branch Dropdown β Type new branch name β Create branch.
β‘οΈ Useful if you prefer using GitHub's website. - Check all available branches.
Command:
git branch
β‘οΈ List all branches in your local repo and see which branch you are on. - Check the status of your changes.
Commands:
git status
β‘οΈ View what files are staged, unstaged, or untracked. - Add all changes to staging area.
Command:
git add .
β‘οΈ Stage all modified or new files for committing. - Commit your changes with a message.
Command:
git commit -m "Added hello_world.py"
β‘οΈ Save your staged changes into the local repo with a meaningful message. - Push your branch to GitHub.
Command:
git push origin feature-24mcr042
β‘οΈ 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
π³ Docker Workflow - Check Docker version.
Commands:
docker --version
β‘οΈ Confirm Docker is installed and check the version. - Build the Docker image.
Commands
docker build -t kanaga14/mca-24mcr049-ml:latest .
β‘οΈ Build a Docker image from your Dockerfile. - List all Docker images.
docker images
β‘οΈ See all Docker images available locally. - Push Docker image to DockerHub.
docker push kanaga14/mca-24mcr042-ml
β‘οΈ Upload your Docker image to your DockerHub account.
5.Open Docker Desktop (Optional).
β‘οΈ View your images and running containers through Dockerβs graphical interface.
6.Run the Docker container.
7.Verify running container in Docker Desktop.
β‘οΈ Use the GUI to check your running containers and images visually.
Top comments (0)