zoukankan      html  css  js  c++  java
  • git svn 填坑笔记

    • 关联 svn 项目
    git svn init https://119.37.197.56:8443/svn/51closer -s --prefix=<branch_prefix> --username=<snv_username>
    
    • 同步
    git svn fetch
    
    • 查看分支
    git branch -a
    

    检查是否存在 remotes/<branch_prefix><svn_branch_name>

    如果不存在,手动在 svn 上建立 branches 目录下建立名称为分支名的目录,并提交。

    • 标记本地与 svn 分支
    git log --pretty=oneline
    git show-ref
    

    通过以上命令分别选取需要对应的 Hash,然后在保存在 .git/info/grafts 文件中,文件内容如下:

    <log_hash> <branch_hash>
    
    • 提交分支
    git svn dcommit
    
    -----------------------------------------------------
    说明:
      a).代码仅供学习交流
      b).本文根据自身经验及网络总结所作,如有错误,谢谢指教
      c).转载请注明出处。
    -----------------------------------------------------
  • 相关阅读:
    hdoj_1556Color the ball
    wchar_t与char转换(总结)
    算法艺术——网络最大流
    poj_3268Silver Cow Party
    poj_2352Stars
    BellmanFord模板
    saas模式
    什么是管道
    什么是CMMI
    saas模式
  • 原文地址:https://www.cnblogs.com/xqbumu/p/10445519.html
Copyright © 2011-2022 走看看