代码拉取完成,页面将自动刷新
git fetch origin master:tmp
//在本地新建一个temp分支,并将远程origin仓库的master分支代码下载到本地temp分支
这里可以在webstrom 右键项目 git - compare with branch
git diff tmp
//来比较本地代码与刚刚从远程下载下来的代码的区别
git merge tmp
//合并temp分支到本地的master分支
git branch -d temp
//如果不想保留temp分支 可以用这步删除
//git 上传到远程仓库
cd到你的本地项目根目录下,执行如下git命令
git init
git add .
git commit -m "注释语句"
git remote add origin https://自己的仓库url地址
git pull origin master
git push -u origin master
分页相关
https://www.cnblogs.com/hdwang/p/7843405.html
https://www.cnblogs.com/hhhshct/p/9476542.html
-5
git branch -a 查看所有本地所程分支
git checkout -b branchtemp 创建分支
git checkout -b branchtemp origin/branchtemp 将远程分支拉取到本地分支 ,如本地分支不存在会自动创建本地分支
a.远程已有remote_branch分支并且已经关联本地分支local_branch且本地已经切换到local_branch
git push
b.远程已有remote_branch分支但未关联本地分支local_branch且本地已经切换到local_branch
git push -u origin/remote_branch
c.远程没有remote_branch分支并,本地已经切换到local_branch
git push origin local_branch:remote_branch
docker :
docker build -t testmanager-0.0.1 .
74 ls
75 docker images
76 docker run -d -p 8080:8080 cd0c4993f311
77 docker ps
78 docker logs -f f55b965fab04
79 ll
docker build -t java-temp .
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。