Docker和Git


Docker

 docker 中还是有部分思想和git有相似的地方
 git --version    docker --version   docker info
 git pull          docker pull
 git push -- docker push 
 git rm   -- docker rmi   docker rm
 git diff -- docker diff
 git commit -- docker  commit
 git log  --docker logs
  git tag  -- docker tag

借鉴

 01.Docker将镜像以代码仓库的形式进行版本管理,并支持通过Push/Pull的方式来发布和分发镜像,它为软件的交付提供了载体
 镜像仓库提供了软件的版本管理和全球分发
 02.docker commit

Git和Gitlab

workflows pipeline

第一阶段
     其他的版本管理:usually--one step  committing from the working copy to a shared server
         Local repository --> Remote repository
      
     Git的版本管理: git add -->  git commit -->  git push 三个步骤
        Working copy --> Index  --> Local repository -->  Remote repository
第二阶段
     branching model --面对多人的修改
	 Git-Flow    a main branch 
	             a separate develop branch, with supporting branches for features, releases, and hotfixes.		 
第三阶段-deployment
    01. Merge/pull requests with GitLab flow
	     serves as a code review tool, and no separate code review tools should be needed
	02.Issue tracking

相关