Mark L
Mark L

Reputation: 759

Heroku - setting up a git environment for existing application

Our developer recently got a new job, and I need to make some changes to our website. (Which is live).

However we don't have the computer that was used to push to our server. So I need to set it up on a new computer. However I can't find any guides related to already existing apps (at least from scratch).

I got the Heroku Toolbelt installed of course, and I can login correctly. (I am the owner of the application).

But I could really use some in-depth help to get a git-environment set up where I can pull from Heroku-master.

This is being done a new computer (windows), and there's no other tools than the Heroku Toolbelt installed atm.

Any help would be greatly appreciated!

Upvotes: 1

Views: 61

Answers (1)

Kevin P.
Kevin P.

Reputation: 401

  1. Login (command line)
  2. Clone repo (into a new local directory)
  3. Commit/Pull/Push changes

https://toolbelt.heroku.com/

$ heroku login
Enter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden):
Authentication successful.

Instructions to clone your repo (into a new folder) here:

https://dashboard.heroku.com/apps/YOURAPPNAME/deploy/heroku-git

$ heroku git:clone -a YOURAPPNAME
$ cd YOURAPPNAME

(Remember to replace YOURAPPNAME with your application name - you can also navigate to it using the dashboard)

After that you should be able to commit any changes, push and pull requests.

Upvotes: 1

Related Questions