Skip to content

Instantly share code, notes, and snippets.

@rupindersohal89
rupindersohal89 / docker_commands.txt
Last active March 29, 2020 11:35
Docker commands
# SHOW THE DOCKER VERSION
docker version
# DISPLAY LIVE STREAM OF CONTAINERS ON DOCKER
docker stats
# DISPLAY SYSTEM-WIDE INFORMATION OF DOCKER
docker info
# LIST ALL THE IMAGES
@rupindersohal89
rupindersohal89 / git.txt
Created March 29, 2020 09:36 — forked from jamalnasir/git.txt
Git Commands
git commit [some files]
Or if you are sure that you have a clean staging area you can
git add [some files] # add [some files] to staging area
git add [some more files] # add [some more files] to staging area
git commit # commit [some files] and [some more files]
git commit file1 file2 file5 -m "commit message"
If you want to make that commit available on both branches you do
git stash # remove all changes from HEAD and save them somewhere else