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

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
A
Arctic Wolf
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Threatpost
P
Proofpoint News Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
www.infosecurity-magazine.com
www.infosecurity-magazine.com
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
Vulnerabilities – Threatpost
V
V2EX
Webroot Blog
Webroot Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Privacy & Cybersecurity Law Blog
P
Privacy International News Feed
T
Tor Project blog
P
Proofpoint News Feed
T
Tailwind CSS Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Vercel News
Vercel News
Security Archives - TechRepublic
Security Archives - TechRepublic
MongoDB | Blog
MongoDB | Blog
T
Troy Hunt's Blog
Google DeepMind News
Google DeepMind News
NISL@THU
NISL@THU
C
CERT Recently Published Vulnerability Notes
W
WeLiveSecurity
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
GbyAI
GbyAI
Y
Y Combinator Blog
T
Threat Research - Cisco Blogs
S
Security Affairs
Google Online Security Blog
Google Online Security Blog
S
Securelist
Spread Privacy
Spread Privacy
Recent Announcements
Recent Announcements
The Register - Security
The Register - Security
C
Cybersecurity and Infrastructure Security Agency CISA
爱范儿
爱范儿
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Scott Helme
Scott Helme
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog RSS Feed
AWS News Blog
AWS News Blog

博客园 - 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