Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
artbindu committed Nov 7, 2024
1 parent dacf7fc commit c84554f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion data/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ version | `docker --version`
Run Docker Image |`doker run -it <docker_image_name>` <br>or<br> `docker run -it <docker_image_name> /bin/bash` <br><br> Node.js ≡ `docker run -it node:lts-slim /bin/bash` <br> Python ≡ `docker run -it python /bin/bash`
Create Docker file| `touch dockerfile` <br> need to install `touch-cli` globally
Show all Docker Images | `docker images`
Show all Docker Containers | `docker ps -a`
Show all Docker Containers Info | `docker ps -a`
Show Running Docker Containers Info | `docker ps`
Create Docker Images | `docker build -t <docker_image_name_in_lowercase> .` <br> Run this with in your application directory where you crate the docker file
Run Docker Images / Create Docker Container | `docker run --name <docker_container_name> -p <host_port>:<default_app_port> <docker_image_name>`
Start Docker Container | `docker container start <docker_image_name>`
Expand Down
5 changes: 4 additions & 1 deletion data/gitLearning.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ Command | description
`git diff <fileName_including_path>` > `<patch_fileName>.patch` | create patch file on a specific changes file<br>first run `git diff --name-only` and copy `fileName_including_path`
`git apply <patch_fileName>.patch` <br> `git apply <patch_directory_path>/<patch_file>.patch` | apply patch file
**`12. git logs`**|
`git log --oneline` | Show the log of the repository
`git log --online` | Show the log of the repository
`git log -n 1` | Check last commit History
**`13. git rename directory & file`**|
`git mv <old_name> <new_name>` | Rename Directory/File Name (If directory/File Name is different)
`git mv <OLD_name> temp` <br> `git mv temp <old_name>`| Case-Sensitive Directory/File Name


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"docker:container": "docker run --name essential-command -p 12345:12345 essential-command:2.0.0",
"docker:command": "npm run docker:clean && npm run docker:image && npm run docker:container",
"docker:compose": "docker-compose build && docker compose up",
"docker:compose-restart": "docker-compose down && docker-compose up -d"
"docker:build": "docker-compose down && docker-compose build && docker-compose up -d"
},
"node-version": {
"node": "16.15.1"
Expand Down

0 comments on commit c84554f

Please sign in to comment.