Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
基本Github回购创建_Github - Fatal编程技术网

基本Github回购创建

基本Github回购创建,github,Github,我刚刚通过Windows10上的Github Bash创建了我的第一个Github Repo 我跑: $ mkdir Projects $ mkdir Projects/DataScientistsToolbox $ mkdir Projects/DataScientistsToolbox/sample $ cd Projects/DataScientistsToolbox/sample $ git init Initialised empty Git repository in /home/o

我刚刚通过Windows10上的Github Bash创建了我的第一个Github Repo

我跑:

$ mkdir Projects
$ mkdir Projects/DataScientistsToolbox
$ mkdir Projects/DataScientistsToolbox/sample
$ cd Projects/DataScientistsToolbox/sample
$ git init
Initialised empty Git repository in /home/osboxes/Projects/DataScientistsToolbox/sample/.git/
$ ls -la
我真的很难理解这段代码。所以我创建了三个目录:projects、DataScientistToolbox和sample

  • 我的代码中的cd命令做什么
  • git init代码是否运行创建
  • ls-la是做什么的
  • 最后,我似乎找不到回购协议保存在我的电脑上的位置,它是在桌面上还是在一个特殊的位置

  • 谢谢,很抱歉有这么多问题。

    您仅使用
    git init
    创建了一个存储库
    cd
    代表
    change directory
    ,就像双击文件夹打开一样

    因此,基本上您的回购是在
    项目/datascientiststtoolbox/sample

    ls
    用于列出当前目录中的所有文件
    -la
    是用于不同显示样式的标志(尝试只运行
    ls

    而且,所有这些命令都与GitHub无关。他们是git的一部分

  • 使用
    cd
    命令可以c更改工作目录
  • 是的,
    git init
    在当前工作目录中的计算机上创建(初始化)一个新存储库
  • ls
    显示当前工作目录中的所有文件和目录<代码>-la更改它们的打印方式
  • pwd
    使您的机器p打印w工作d目录。使用它来找出您的存储库是在哪里创建的

  • 了解如何创建GitHub存储库。和是基本unix命令的列表-它可能会帮助您开始使用unix系统。

    my repo现在是否位于我的计算机上?您的本地存储库是。我建议您阅读更多关于git的内容。这是一个很好的起点。欢迎使用Git,并祝您编码愉快!这些教程帮助我理解了如何使用Git:and