git clone https://github.com/<USERNAME>/<project>.git
cd <project>
git checkout -b dev-feature
git add <filename>
git commit -m "<message>"
git push --set-upstream origin dev-feature
git checkout main
git pull origin main
git merge dev-feature
git push origin main
git branch -d dev-feature
git push origin --delete dev-feature
git checkout main
git fetch origin
git pull origin main
git checkout dev-feature
git rebase main
git add <conflicted-file>
git rebase --continue
git push origin dev-feature
or, if you've rebased:
git push origin dev-feature --force
git checkout main
git pull origin main
git checkout main
git pull origin main
git checkout -b dev-newfeatureorbugfix
git add <filename>
git commit -m "<message>"
git push --set-upstream origin dev-newfeatureorbugfix
git reset HEAD <filename>
git reset
docker pull <repository>:<tag>
docker run -d
-p <host_port>:<container_port>
--name <container_name> <image_name>
docker ps (List running containers)
docker ps -a (List all containers)
docker stop <container_id_or_name>
docker rm <container_id_or_name>
docker build -t <image_name>:<tag> .
docker push <repository>:<tag>
docker logs <container_id_or_name>
docker exec -it <container_id_or_name> <command>
docker exec -it <container_id_or_name> /bin/bash
oc new-build --strategy=docker --binary --name apache-php-oracle
oc start-build apache-php-oracle --from-dir=.
oc new-app apache-php-oracle
oc expose service/apache-php-oracle --port=8080
oc get route apache-php-oracle
To get pods:
oc get pods
oc logs apache-php-oracle-9cd4b855f-ld2tx -c apache-php-oracle
oc delete dc/apache-php-oracle
oc delete svc/apache-php-oracle
oc delete route/apache-php-oracle