git gui:如何克隆和推送?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4205503/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 09:30:19  来源:igfitidea点击:

git gui: how to clone and push?

gitgit-clonegit-gui

提问by laukok

I think I am stupid. I don't understand how Git works with the command lines so I am using Git Gui.

我觉得我很傻。我不明白 Git 如何使用命令行,所以我使用 Git Gui。

I got it install and the Gui can be launched successfully, but when I come to clone the file from the files which is shared by another programmer with me, I keep getting this error message,

我安装了它并且 Gui 可以成功启动,但是当我从另一个程序员与我共享的文件中克隆文件时,我不断收到此错误消息,

Location C:/.... already exists.

位置 C:/.... 已经存在。

on the Gui interface, it has two input fields to fill in only -

在 Gui 界面上,它有两个输入字段只需要填写 -

'Source Location' : https://[email protected]/remote-programmer/project-1.git (for instance)
'Target Directory' : C:/wamp/www/project-1-folder (for instance)

any visual guides available that I can avoid the command lines?

任何可以避免命令行的可视指南?

thanks!

谢谢!

回答by bdukes

You need to clone into a new directory, that is, that "Target Directory" that you specify should not already exist.

您需要克隆到一个新目录中,即您指定的“目标目录”不应该存在。

回答by Hemantvc

'Source Location' : https://[email protected]/remote-programmer/project-1.git(for instance) Don't browse the target directory .write full path and new folder name manually.

“源位置”:https://[email protected]/remote-programmer/project-1.git(例如)不要手动浏览目标目录。写完整路径和新文件夹名称。

'Target Directory' : C:/wamp/www/project-1-folder

“目标目录”:C:/wamp/www/ project-1-folder

回答by Brendon Dulam

For the following case, just remove the "C:/" in the target directory.

对于以下情况,只需删除目标目录中的“C:/”即可。

'Source Location' : https://[email protected]/remote-programmer/project-1.git'Target Directory' : C:/wamp/www/project-1-folder (for instance)

“源位置”:https://[email protected]/remote-programmer/project-1.git“目标目录”:C:/wamp/www/project-1-folder(例如)

The target directory should be like this: 'Target Directory' : wamp/www/project-1-folder

目标目录应该是这样的: 'Target Directory' : wamp/www/project-1-folder