PHP Classes

File: save-code.sh

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   PHP GitHub Readme Generator   save-code.sh   Download  
File: save-code.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP GitHub Readme Generator
Generate Markdown files to describe projects
Author: By
Last change:
Date: 1 year ago
Size: 513 bytes
 

Contents

Class file image Download
#!/bin/bash # Save a git project to a specific repo (e.g. github, bitbucket, ...) function save-project-to-repo() { branch="master" git remote rm origin git remote add origin $1 git push origin $branch } declare readonly gitRemotes=( git@gitlab.com:pH-7/github-readme-generator-cli.git git@bitbucket.org:pH_7/php-github-readme-generator-seo-friendly.git git@github.com:pH-7/github-readme-generator-cli.git ) for remote in "${gitRemotes[@]}" do save-project-to-repo $remote done