gpt4 book ai didi

git - Elastic Beanstalk、Git 和 AWS 工具 : How to clone repository to another workstation

转载 作者:太空狗 更新时间:2023-10-29 13:20:12 24 4
gpt4 key购买 nike

我刚刚发现了 AWS 惊人的可能性。所以这就是我昨天所做的:

- I have created an EB stack (PHP)
- Created a git repository on my workstation
- Downloaded AWS tools for windows,
- Did eb.init (the AWS config stuff)
- Wrote some code
- Finally git committed and aws.push-ed it to my EB stack

一切正常。但现在我在另一个工作站工作,想继续我的项目。我现在该怎么做 git clone?我想将所有文件下载到这个工作站,提交一些东西,最后 aws.push 到我的 EB 堆栈?

首先,我将 AWS 工具下载到这个工作站,创建了一个新文件夹,我在其中执行了 git init,但是 git clone 的 url 是什么?我如何获得 EB 设置?我尝试执行 eb init,但这导致我生成了一个新堆栈,并且没有提供任何选项来下载我现有的文件。

我正在使用 Windows(powershell、putty 等)。

最佳答案

首先,祝贺您首次推送到 Elastic Beanstalk!

现在,关于存储库。在第二个工作站上继续工作的选项很少,完全取决于您 future 的需求:

  • 将整个项目目录从“工作站 A”复制到“工作站 B”。如果您打算从现在开始继续在“工作站 B”上工作,则可以接受。

  • 将 git 项目从“工作站 A”克隆到“工作站 B”。您将在“工作站 A”上拥有起源,并且可以将您的提交推送到那里。不太灵活,如果您以后必须移动到“工作站 C”。

$ cd my-projects-on-workstation-b

$ git clone path-to-my-project-on-workstation-a/myproject.git

  • 将您的整个项目推送到在线共享位置。最好的选择。

我更喜欢 bitbucket.org对于我的私有(private)项目(无限私有(private)存储库)和 github.com对于开源项目。

BitBucket 说明:Import code from an existing project

GitHub 说明:Import existing source code to github

关于git - Elastic Beanstalk、Git 和 AWS 工具 : How to clone repository to another workstation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20677797/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com