Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a git-setup command #431

Merged
merged 4 commits into from
Jul 2, 2019
Merged

Add a git-setup command #431

merged 4 commits into from
Jul 2, 2019

Conversation

EtienneM
Copy link
Member

@EtienneM EtienneM commented Jul 2, 2019

Here is the commands added:

╰─$ cli --region osc-fr1 --app test-java-buildpack git-show
-----> Your application test-java-buildpack Git remote is: ssh://[email protected]:2200/test-java-buildpack.git

And

╰─$ git remote -v                                                                            
origin  [email protected]:Scalingo/cli.git (fetch)
origin  [email protected]:Scalingo/cli.git (push)
╰─$ cli --region osc-fr1 --app test-java-buildpack git-setup --remote toto 
-----> Successfully added the Git remote toto on test-java-buildpack
╰─$ git remote -v
origin  [email protected]:Scalingo/cli.git (fetch)
origin  [email protected]:Scalingo/cli.git (push)
toto    ssh://[email protected]:2200/test-java-buildpack.git (fetch)
toto    ssh://[email protected]:2200/test-java-buildpack.git (push)

If run from a directory with no Git initialized:

╰─$ ./cli/cli --region osc-fr1 --app test-java-buildpack git-setup --remote toto
 !     An error occured:
       fail to initialize the Git repository: repository does not exist

Fix #430

@EtienneM EtienneM requested a review from johnsudaar July 2, 2019 12:48
@EtienneM EtienneM marked this pull request as ready for review July 2, 2019 12:48
Copy link
Contributor

@johnsudaar johnsudaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johnsudaar johnsudaar merged commit c358575 into master Jul 2, 2019
@EtienneM EtienneM deleted the fix/430/git_setup branch July 2, 2019 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[git] Add a command to setup the git remote
2 participants