1.git branch
The git branch command is used to manage and view branches in your Git repository.
2.creating new branch
git branch branch-name is used to create a new branch called branch-name, but it does not switch you to that branch.
To switch between branches, use git checkout branch-name
Another way to create a new branch is Go to GitHub Repository → click on Branch → Type branch name → Create branch
3.git checkout main
Switch between branches
4.git status
What it shows:
- Current branch
- Changes staged for commit
- Changes not staged (modified but not added)
- Untracked files (new files Git doesn’t track yet)
5.git push origin main It pushes your local main branch to the remote repository's main branch on origin
*To check Docker version *
command :
Docker --version
To create Docker file
To build Docker image
command :
docker build -t harini0711/mca-24mcr031-ml:latest .
To List Docker Images
command :
docker images
To Push Docker Images to DockerHub
command :
docker push harini0711/mca-24mcr031-ml
Open Docker Desktop to view images and containers
- Run the Docker container
Verify the Docker image and running container in Docker Desktop