Cheatography
https://cheatography.com
Docker and GIT Cheet Sheet
Docker
Docker |
View Images |
docker images |
Run Image |
docker run -it <container_id> |
View Running Images |
docker ps |
Commit Changes |
docker commit <container_id> <image_name> |
Import Docker Image |
docker import <tar_name> <choose_image_name> |
Export Docker Image |
docker save -o <tar_name> <name_of_image> |
Delete Old Docker Images |
docker rmi <container_id> |
|
|
Git Create Branch and Push Changes
Move Into Git Repo |
cd <local_git_directory> |
Create a Branch |
git branch <branch_name> |
Checkout the Branch |
git checkout <branch_name> |
Add File(s) |
git add <file> |
Configure Git Email |
git config --global user.email "first.last@email.com" |
Configure Git Account Name |
git config --global user.name "USERID" |
Commit Changes |
git commit "description of change" |
Push Changes |
--set-upstream origin <branch_name> |
|
|
Git Create Pull Request to Merge Into Master
Login to Web Git |
Select the Repo with Changes |
Under source click on master and a drop down with the list of branches will appear |
Select the branch you just created |
On the left choose "pull request" and "create pull request" |
Select a reviewer to approve the changes |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets