"repo" 怎么用服务器覆盖本地文件

"repo" 怎么用服务器覆盖本地文件,第1张

for example:
cd frameworks/base/
git status
git diff > testpatch
mv testpatch ~/
repo forall -c git reset --hard HEAD
repo forall -c git am --abort
repo forall -c git clean -xfd
repo sync
patch -p1 < ~/testpatch

 一下载SVN服务器端安装,配置
1SVN是目前软件开发中,最流行、最先进的版本控制工作,比起VSS、CVS等版本控制工具,具有很多优势。
2SVN分为服务器端和客户端
服务器端指Tigris SVN;客户端包括Tortoise SVN,Eclipse SVN插件,这两者也是最常用的
3SVN相关软件
服务器端
客户端Tortoise SVN
Eclipse SVN插件
4SVN服务器端部署步骤:
1下载安装,傻瓜式安装,很简单
2安装完毕之后,创建资源库(Repository),将来存放所有项目资源的仓库,命令如下(cmd下执行)
svnadmin create d:\SVNRepo\Repo1
Repo1就为创建的资源库
3资源库创建完毕之后,找到D:\SVNRepo\Repo1\conf\svnserveconf文件打开,修改
修改之前为:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users Valid values are "write", "read",
### and "none" The sample settings below are the defaults
# anon-access = read
# auth-access = write
### The password-db option controls the location of the password

### Uncomment the line below to use the default password file
# password-db = passwd
### The authz-db option controls the location of the authorization
修改之后为:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users Valid values are "write", "read",
### and "none" The sample settings below are the defaults
anon-access = read
auth-access = write
### The password-db option controls the location of the password
### Uncomment the line below to use the default password file
password-db = passwd
### The authz-db option controls the location of the authorization
注意:anon-access = read
auth-access = write
password-db = passwd,每行的前面不能有空格
4创建用户,配置访问权限
找到D:\SVNRepo\Repo1\conf\passwd,添加用户及密码,建完之后,该用户就可以向资源库中提交项目,添加用户zs,密码zs
[users]
# harry = harryssecret
# sally = sallyssecret
zs = zs
5启动SVN服务器
svnserve -d -r D:\SVNRepo\Repo1
二在MyEclipse中打入SVN客户端插件,分为自动更新和
注:SVN客户端有很多,最常用的是MyEclipse客户端插件和SVNTortoise客户端
MyEclipse_SVN客户端插件下载地址:>

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/zz/10756175.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-11
下一篇2023-05-11

发表评论

登录后才能评论

评论列表(0条)

    保存