我正在尝试在 Ubuntu 18.04.1 LTS 上将 SVN 迁移到 Git。我已经安装了 git:
sudo apt-get install git-core
Run Code Online (Sandbox Code Playgroud)
其中似乎不包含 git-svn。我试过:
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
然后:
sudo apt-get install git-svn
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package git-svn is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'git-svn' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我也尝试过git-svn 不是 git 命令?:
sudo add-apt-repository ppa:git-core/ppa
...
sudo apt-get update
...
sudo apt-get install git-svn
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
git-svn : Depends: git (> 1:2.19.0) but 1:2.17.1-1ubuntu0.1 is to be installed
Depends: libsvn-perl but it is not installable
Depends: libterm-readkey-perl but it is not installable
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
似乎https://askubuntu.com/questions/1002376/cant-install-package-with-apt?rq=1有类似的问题。
非常感谢您的帮助。
您可以通过执行以下命令轻松安装:
sudo apt-get install git git-svn
Run Code Online (Sandbox Code Playgroud)
前
user@xxx:/mnt/d/Sandbox/SVN_EXPORT$ git svn clone http://svn.xyz.com/u-a --no-metadata -A authors-transform.txt --stdlayout ./temp
git: 'svn' is not a git command. See 'git --help'.
Did you mean one of these?
fsck
mv
show
Run Code Online (Sandbox Code Playgroud)
后
user@xxx:/mnt/d/Sandbox/SVN_EXPORT$ git svn clone http://svn.xyz.com/u-a --no-metadata -A authors-transform.txt --stdlayout ./temp
Initialized empty Git repository in /mnt/d/Sandbox/SVN_EXPORT/temp/.git/
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4602 次 |
| 最近记录: |