git-svn — 让git和svn协同工作 【工具版】

background

My company is using SVN to be code management tool. I have no rights to commit, and I must export the different files to my leader to commit. For my local work conveniently , I need a local repository. So I research git and svn, and find they can cooperate.

Environments prepare

• Download and Install Git
https://git-scm.com/
• Download and Install SmartGit
http://www.syntevo.com/smartgit/
• Download and Install TortoiseGit
https://tortoisegit.org/

Clone project

  1. Open SmartGit , click the navigation : Repository -> Clone…

    这里写图片描述
    这里写图片描述
    这里写图片描述
    Noted, there are two patterns. The first is to clone all versions, and the second is to clone from the specified version. The second spends less time, which applies for cloning branch temporally, such as for bug fix.

Local develop using git

  1. Pull the latest code
    Click the repository, and click Pull button.
    这里写图片描述
    2.Save local change
    Select the changed files, and click Commit button
    这里写图片描述
    Input some message to mark
    这里写图片描述
    There are no changed files any more. If you want to look the detail, click the button Log.
    这里写图片描述
    There are some other useful functions besides mentioned, and you can try to use it.

Export the changed files

As SmartGit has no export function, I exported the changed files by TortoiseGit.
1.In project root directory, right click TortoiseGit -> Show log
• If you want to export in one commit, please select the commit in the log, and execute like below.
这里写图片描述
• If you want to export many commits, you need to combine these commits first like below, and then export like export one commit.
这里写图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值