我正在尝试遵循Aptible Quickstart教程 for项目,该项目有一个现有的git存储库。完成步骤后
git remote add aptible "$GIT_REMOTE"在$GIT_REMOTE是由aptible apps:create命令使用Aptible创建的git时,我现在有两个远程存储库:
Kurts-MacBook-Pro:lucy-web kurtpeek$ git remote -v
aptible git@beta.aptible.com:lucy/web.git (fetch)
aptible git@beta.aptible.com:lucy/web.git (push)
origin https://github.com/startwithlucy/lucy.git (fetch)
origin https://github.com/startwithlucy/lucy.git (push)在此之前,我创建了一个名为aptible的新分支,并将其签出(使用git checkout -b aptible)。我的git status显示我现在在这个分支上:
Kurts-MacBook-Pro:lucy-web kurtpeek$ git status
On branch aptible我现在要做的是将origin远程上的origin分支的内容推送到aptible远程的master分支。我该怎么做?适当的命令是
git push aptible:master origin:aptible发布于 2018-02-06 03:06:25
把树枝推到不同的遥控器,
然后将git内容推送到远程(aptible)。
git push aptible HEAD:master更新:很明显,在您推送分支之前,不需要签出分支。但是,如果您想查看/修复分支,可以使用git checkout aptible签出
https://stackoverflow.com/questions/48634224
复制相似问题