Skip to content

Commit ce4c080

Browse files
committed
Added branch logic to rundoc
1 parent dbd30bc commit ce4c080

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/java-getting-started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ To create a local copy of a sample app that you can deploy to Heroku, execute th
111111
```term
112112
:::>- $ git clone https://github.com/heroku/java-getting-started
113113
:::>- $ cd java-getting-started
114+
:::-- $ git checkout -t origin/$(git remote get-url heroku 2> /dev/null | sed 's/https:\/\/git.heroku.com\/\(.*\).git/\1/')
115+
:::-- $ git checkout master
116+
:::-- $ git merge $(git remote get-url heroku 2> /dev/null | sed 's/https:\/\/git.heroku.com\/\(.*\).git/\1/')
114117
```
115118

116119
You now have a functioning Git repository that contains a simple Java application. The application includes a `pom.xml` file, which is used by Java's dependency manager, Maven.

0 commit comments

Comments
 (0)