How to merge two gits in one

时间:2019-04-17 01:33:47

标签: git github

I'm trying to push my project to github...

First I set up the server and created a git for it. Then I add a new folder called client, with all frontend on it, and I init another git on this folder. Not sure if I have done the right thing, but...

How can I push all files from my project to repo as if I had only one git initialized?

1 个答案:

答案 0 :(得分:0)

您最好将这些文件夹放在名为website的主文件夹中,并在其中初始化一个git repo,然后将所有内容从那里推送到远程存储库,而不是在客户端文件夹和服务器文件夹中初始化单独的git repos。

|-website
  |-server
  |-client