当前位置:网站首页>【知识小结】PHP使用svn笔记总结
【知识小结】PHP使用svn笔记总结
2022-07-07 14:07:00 【全栈程序员站长】
在公司里,我们要养成每天上班前更新代码,下班前提交代码的习惯,并且做好说明。
svn更新代码的时候,先右键点击需要更新的项目,在team中进入资源库同步界面,选择incoming mode,显示的文件是需要更新的,
黑色向右箭头 :本地修改过的文件(可以选择提交,或者覆盖/更新-就是把本地修改覆盖掉)
蓝色向左箭头 :SVN服务器端修改过的文件–需要更新 黑色向右且带加号的箭头 :本地比服务器端多出的文件–选择提交或删除 蓝色向左且带加号的箭头 :服务器端比本地多出的文件–更新 黑色向右且带减号的箭头:本地已经删除,而服务器端没有删除的文件–同步 蓝色向左且带减号的箭头:服务器端已经删除,而本地没有删除的文件–同步库 红色双向箭头 :本地和服务器端同时修改过的文件–先比较,然后把服务器新增的添加过来,选择合并,然后再提交 黑色带星号的图标 :本地已经修改过但是没有提交的文件 工作前先更新代码,提交前原则也是先更新,因为有可能在你编写代码这个过程中资源库有变化。 出现项目带红叉时,恢复到资源库最新内容的版本
Eclipse中SVN客户端的基本操作:
同步(Synchronize):同步,是在更新提交之前做的工作,更新提交前先同步,可以知道哪些东西要提交哪些东西要更新,哪些东西是冲突的(你和同事 改了同一个文件,可能会出现冲突),出现冲突不能提交也不能更新,只有先将冲突的文件选择用本地的文件覆盖或用服务器的文件覆盖本地后才能更新或提交,具体的用法还需要楼主多实践。右击项目、目录或者文件→Team(小组)→Synchronize(与资源库同步),会进入同步视图界面,这里会显示所选择的项目或者目录中与资源库(SVN服务器端)相比做过修改的文件,或者所选择的文件是否被修改过,双击文件能显示文件中具体的不同之处。
提交(Commit):提交,是指服务器上没有的,也就是你改过的东西,你需要将代码提交,其他同事更新你的代码。在同步视图中右击文件选择“提交(Commit)”,或者在项目视图中右击项目、目录或者文件→Team(小组)→Commit(提交),可以将本地的文件提交到SVN服务器端。
更新(Update): 更新,是指服务器上变动了的,而你本地没有变动,需要你更新。在同步视图中右击文件选择“更新(Update)”,或者在项目视图中右击项目、目录或者文件→Team(小组)→Update(更新),可以将SVN服务器端的文件更新到本地,使本地文件与服务器端保持版本一致。
原则上是先更新,后提交。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/113193.html原文链接:https://javaforall.cn
边栏推荐
- 分类模型评价标准(performance measure)
- Unity3D_ Class fishing project, bullet rebound effect is achieved
- markdown公式编辑教程
- 20th anniversary of agile: a failed uprising
- Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?
- JS array foreach source code parsing
- Particle effect for ugui
- Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc
- 121. The best time to buy and sell stocks
- Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
猜你喜欢

MySQL数据库基本操作-DQL-基本查询

Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench

Sysom case analysis: where is the missing memory| Dragon lizard Technology

深度之眼(六)——矩阵的逆(附:logistic模型一些想法)

模仿企业微信会议室选择

谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题

Vs tool word highlight with margin

Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()

What are compiled languages and interpreted languages?

Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc
随机推荐
three.js打造酷炫下雪效果
无线传感器网络--ZigBee和6LoWPAN
U3D_ Infinite Bessel curve
Three. JS introductory learning notes 15: threejs frame animation module
Three. JS introductory learning notes 0: illustration of how webgl and threejs work
Unity3d click events added to 3D objects in the scene
应用程序和matlab的通信方式
Align individual elements to the right under flex layout
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
持续创作,还得靠它!
2022 the 4th China (Jinan) International Smart elderly care industry exhibition, Shandong old age Expo
强化实时数据管理,英方软件助力医保平台安全建设
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
Leetcode-136-只出现一次的数(用异或来解答)
Three. JS introductory learning notes 11:three JS group composite object
Dotween -- ease function
MySQL中, 如何查询某一天, 某一月, 某一年的数据
Logback logging framework third-party jar package is available for free
After UE4 is packaged, mesh has no material problem
Whole process analysis of unity3d rendering pipeline