我有一个本地仓库,其中包含两个分支master
和develop
。
- 在
develop
分支中,我有所有的Drupal 8核心代码。 - 在我的
master
分支中,我有1个提交(初始提交)
在我的远程仓库中,我在develop
分支中拥有所有的Drupal 8核心代码。如何将此代码合并到远程的master
分支中?我该如何合并这些仓库?
更新:
当我执行git status
时,我得到:
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
griffioenrotterdam.sublime-project
griffioenrotterdam.sublime-workspace
sites/
nothing added to commit but untracked files present (use "git add" to track)
我需要做什么?
更新2:
当我执行git checkout develop
时,我会得到:
error: The following untracked working tree files would be overwritten by checkout:
sites/default/default.services.yml
sites/default/default.settings.php
Please move or remove them before you can switch branches.
Aborting
我需要做什么?
sites/
我不理解,因为在sites/
文件夹后面有我想要在存储库中的文件?这里的sites/
是什么意思?我再次更新我的问题... - meez