怎么使用Git像svn一样
伊谢尔伦
伊谢尔伦 2017-05-02 09:18:51
0
10
818

我现在开发项目,之前是用svn现在想用git
在linux服务器上已经安装了git
在windows安装了客户端TortoiseGit工具

我想把线上代码clone到线下,一直是
出现这错误

也是第一次用,很多功能都不熟悉,请高手指教下。

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(10)
淡淡烟草味

A concise guide to GIT: http://blog.lxx1.com/category/coding/git
Take it, thank you~

滿天的星座

The clone interface is uploaded. In fact, the most important thing is the clone address and password, as well as your own git key

洪涛

Add basic knowledge first

某草草

Owner, I have encountered the same problem as you before. The TortoiseGit tool reported errors for no reason. Later I found out that the client itself has many bugs. I did not encounter any errors when using the command line. It is recommended to use the command line.

Peter_Zhu

The clone address is not the repo address
At least it must end with .git

Ty80

It’s OK to take some time to read Liao Xuefeng’s tutorial. There must be differences in using different tools. Your idea is wrong. Here is the address,
http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/

某草草

Pro Git You’re welcome

phpcn_u1582

Why should Git be used like SVN?
Since using Git for the first time, it has changed my view on repositories.
It is recommended that the author first add knowledge about using Git, and then delete this question.

曾经蜡笔没有小新

It is most convenient to use the command line. You can use the git svn command, which means using svn just like using git. Attachment: http://chengshiwen.com/article/head-first-git/#git-svn

習慣沉默

If you use Git, the best way to use it is the command line, and it is recommended to use the command line. But for your question, when cloning the version, you should provide the address of a repository. It is very likely that you provided an incorrect git repository address. If you use the command line, you can see the log file, which is very convenient for checking errors. The clone code is as follows:

$ cd workplace
$ git clone http://github.com/username/projectname
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!