简体   繁体   English

github heroku master分支

[英]github heroku master branch

I am a newbie to Github except a few tutorial projects created in Github using Git Bash CLI. 我是Github的新手,除了一些使用Git Bash CLI在Github中创建的教程项目。 I downloaded a Github zip archive of a Heroku getting-started app and in my local I make some changes and I pushed that new app in to Heroku under my name as a new app. 我下载了一个Heroku入门应用程序的Github zip存档,在本地进行了一些更改,然后将该新应用程序以我的名字推送到了Heroku中。 How would I keep a remote repo on Github ? 我如何在Github上保留远程回购协议? I guess the push to heroku is just a deployment and its not the code repository? 我想推送到heroku只是一个部署,而不是代码存储库? I dont want to loose my changes when the local hard drive crash; 当本地硬盘崩溃时,我不想放弃更改;

This is my simple workflow: download Github Archive of Getting Started Heroku app ------> changed the app to my requirements and named it myNewApp ----------> create a heroku account and push the code ----> ???next to keep a remote repo ???? 这是我的简单工作流程:下载Heroku入门应用程序的Github存档------>将应用程序更改为我的要求,并将其命名为myNewApp ---------->创建一个heroku帐户并推送代码---->接下来保留一个远程仓库

Appreciate any help. 感谢任何帮助。 TIA. TIA。

git remote --verbose will list all of repository remotes. git remote --verbose将列出所有存储库远程。 In your situation I guess it is a heroku repository on github. 在您的情况下,我想它是github上的heroku存储库。

I suggest to create a fork (at github) of Getting Started Heroku app and than clone it to your development machine so origin remote will be yours. 我建议的入门Heroku的应用创建一个叉(在github上)和比它克隆到你的开发机,以便origin遥控器将是你的。 Ref: https://help.github.com/articles/fork-a-repo/ 参考: https : //help.github.com/articles/fork-a-repo/

If you already made some changes on cloned heroku repo you could create an empty github repo and than add a new remote 如果您已经对克隆的heroku存储库进行了一些更改,则可以创建一个空的github存储库,然后添加一个新的远程服务器。

git remote add github remote repository URL
# Sets the new remote
git remote --verbose
# Verifies the new remote URL
git push github
# Push your changes to yours github repo

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM