Docker and GIT Cheet Sheet
|
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>
|
|
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>
|
|
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
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.