GitHub:如何将子文件夹添加到GitHub-Repository中 [英] GitHub: how to add Subfolders to a GitHub-Repository

查看:576
本文介绍了GitHub:如何将子文件夹添加到GitHub-Repository中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GitHub中很新(从昨天开始;-))并且想要添加文件&文件夹



在我的Xcode-Project中,我有这个Folder- / File-Structure:



具有文件夹图标的条目作为CodeDataTest,Classes,Model ...是文件夹,其余都是文件。
现在我想将这些结构添加到我的新GitHub-Repository中,如图所示。



我搜索了很多,但没有找到解决方案。 : - (



您能帮我吗?

预先感谢!


1.登录GitHub,然后点击开始一个项目 - >创建一个新的仓库,输入您的名称 CoreDataTest



<2>运行 git init

3.运行以下命令:

  git remote add origin git@github.com:xxxx / CoreDataTest.git 

4.最后,将本地存储库推送到远程

  git push -u原点大师


I´m very new in GitHub (since yesterday ;-)) and want to add files & folders

In my Xcode-Project i have this Folder-/File-Structure:

entries with the folder-icon as CodeDataTest, Classes, Model,... are Folders, the rest are files. Now i want to add these structure to my new GitHub-Repository as shown.

I googled a lot but found no solution. :-(

Can you help me?

Thanks in advance!

解决方案

1.Login GitHub, then click Start a Project -> Create a new repository, input your name CoreDataTest

2.Run git init in your local CoreDataTest directory.

3.Run the following command:

git remote add origin git@github.com:xxxx/CoreDataTest.git

4.Finally, push local repository to remote

git push -u origin master

这篇关于GitHub:如何将子文件夹添加到GitHub-Repository中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆