Git Push files into the repository

docker git init
git clone
//You should enter the folder which have a ".gitigore" file
and copy files which you want to git push for your repository
into that folder
git add --all
git commit --all -m update
git push origin // master

//
git init
//touchdock sample.txt
git add sample.txt // git add . = add all~
git commit -m "first commit"
git status
git log

tmux
tmux new -s session_name
tmux a -t session_name //return session
tmux kill -session -t session_name

docker
docker run -itd --name ubuntu-test ubuntu /bin/bash
docker exec -it 243c32535da7 /bin/bash
doker rm -f
docker logs -f --until=2s test

部署
创建docker 镜像
docker build -t xiechengtravel .
运行镜像
docker run -d --name xiechengapi -p 8080:80 imageName

posted @ 2020-11-27 01:59  李花花小番茄  阅读(86)  评论(0编辑  收藏  举报