惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
Project Zero
Project Zero
T
The Exploit Database - CXSecurity.com
T
Threat Research - Cisco Blogs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyberwarzone
Cyberwarzone
PCI Perspectives
PCI Perspectives
G
GRAHAM CLULEY
H
Hacker News: Front Page
Cloudbric
Cloudbric
Latest news
Latest news
N
News and Events Feed by Topic
C
CERT Recently Published Vulnerability Notes
Attack and Defense Labs
Attack and Defense Labs
SecWiki News
SecWiki News
Security Latest
Security Latest
MyScale Blog
MyScale Blog
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Security Archives - TechRepublic
Security Archives - TechRepublic
V2EX - 技术
V2EX - 技术
B
Blog RSS Feed
L
LINUX DO - 最新话题
人人都是产品经理
人人都是产品经理
Last Week in AI
Last Week in AI
IT之家
IT之家
Jina AI
Jina AI
Y
Y Combinator Blog
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
P
Privacy International News Feed
B
Blog
S
Schneier on Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
Help Net Security
Help Net Security
D
DataBreaches.Net
博客园_首页
G
Google Developers Blog
I
InfoQ
量子位
大猫的无限游戏
大猫的无限游戏
S
Security @ Cisco Blogs

博客园 - loop

brew 出现 git 错误的问题分析 xcode 编译器在各个arch下面默认宏 parallels无法启动之大乌龙-流水账版 关于结对敏捷开发 android openmax hardware decoder 整合记录 mac上parallel与virtualbox无法共存 git submodule 使用 VLC plugin加载代码分析 在parallel中安装archlinux + awesome inline 小结 小米盒子试用 keepass管理密码 chrome同步书签cpu占用率过高问题解决 mac上的ssh proxy客户端 --iSSH个人修改版 终于可以在家更新mplayer了 不要一个人吃饭 在archlinux中安装chrome 关于MP4 fileformat中 duration及timescale相关的几个地方 linux ramdom hung up
git对svn操作
loop · 2012-08-13 · via 博客园 - loop

参考资料:

http://www.blogjava.net/lishunli/archive/2012/01/15/368562.html

http://koukaipan.pixnet.net/blog/post/25477493-%5B%E7%AD%86%E8%A8%98%5D-git-svn-%E5%8D%94%E5%90%8C%E5%90%88%E4%BD%9C

http://www.uml.org.cn/pzgl/201108014.asp

git pro 第八章

安装:

macport默认安装git是不带svn支持的

需要支持git svn命令的话需要通过下面两条语句完成

sudo port deactivate git-core

sudo port install git-core +svn

1 checkout svn 代码

git-svn clone  http://example.com/my_subversion_repo local_dir

如果符合svn标准的trunk/branches/tag风格,则直接加上-s的option

git-svn clone -s  http://example.com/my_subversion_repo local_dir

2 commit 代码

本地修改,通git普通操作一样

git commit -a -m "bla bla bla"

提交远程svn库,注意git的每次提交都会转化成svn的一个revision

git-svn dcommit

3 代码冲突管理

出现了代码冲突的话,首先更新本地的代码

git-svn rebase   //自动merge

git-svn fetch    //只获取远程数据,不更新本地代码,不merge

4 log

git log

git-svn log