[go: up one dir, main page]

0% found this document useful (0 votes)
62 views2 pages

Git Cheat Sheet

This document provides instructions for deploying an application to Heroku using Git. It explains how to set up the Heroku CLI, initialize a Git repository, add the Heroku remote, commit code changes, and deploy to Heroku with Git pushes.

Uploaded by

ps
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views2 pages

Git Cheat Sheet

This document provides instructions for deploying an application to Heroku using Git. It explains how to set up the Heroku CLI, initialize a Git repository, add the Heroku remote, commit code changes, and deploy to Heroku with Git pushes.

Uploaded by

ps
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

dfsdfd · Heroku-git | Heroku 28/04/2017, 18*28

Personal apps (/apps) dfsdfd

Open app (https://dfsdfd.herokuapp.com/) More

Overview (/apps/dfsdfd) Resources (/apps/dfsdfd/resources) Deploy

Metrics (/apps/dfsdfd/metrics) Activity (/apps/dfsdfd/activity)

Add this app Add this app to a stage in a pipeline to enable additional features
Access (/apps/dfsdfd/access) Settings (/apps/dfsdfd/settings)
to a pipeline
Pipelines let you connect multiple Pipelines conn
Create a new pipeline or apps together and promote code enable review
choose an existing one between them. Learn more for new pull re
(/)
and add this app to a (https://devcenter.heroku.com/articles/pipelines). (https://devce
Jump to Favorites, Apps, Pipelines, Spaces...
stage in it.

New Pipeline… Add to a Pipeline

Deployment
method Heroku Git
Use Heroku CLI
(/apps/dfsdfd/deploy/heroku-git)

GitHub
Connect to GitHub
(/apps/dfsdfd/deploy/github)

Dropbox
Connect to Dropbox
(/apps/dfsdfd/deploy/dropbox)

Deploy using Install the Heroku CLI


Heroku Git
Download and install the Heroku CLI
(https://devcenter.heroku.com/articles/heroku-command-line).

https://dashboard.heroku.com/apps/dfsdfd/deploy/heroku-git Page 1 of 2
dfsdfd · Heroku-git | Heroku 28/04/2017, 18*28

Use git in the command If you haven't already, log in to your Heroku account and follow the
line or a GUI tool to prompts to create a new SSH public key.
deploy this app.
$ heroku login

Create a new Git repository

Initialize a git repository in a new or existing directory

$ cd my-project/
$ git init
$ heroku git:remote -a dfsdfd

Deploy your application

Commit your code to the repository and deploy it to Heroku using Git.

$ git add .
$ git commit -am "make it better"
$ git push heroku master

Existing Git repository

For existing repositories, simply add the heroku remote

$ heroku git:remote -a dfsdfd

heroku.com
(http://heroku.com/home) Terms of Service (https://www.heroku.c
Blogs (https://blog.heroku.com) Privacy (https://www.heroku.com/polic
Careers Support (https://help.heroku.com) Cookies
(https://www.heroku.com/careers) (https://www.heroku.com/policy/privac
Documentation © 2017 Salesforce.com
(https://devcenter.heroku.com/)

https://dashboard.heroku.com/apps/dfsdfd/deploy/heroku-git Page 2 of 2

You might also like