PHP Classes

File: save-code.sh

Recommend this page to a friend!
  Classes of Pierre-Henry Soria  >  Just Http Status Codes  >  save-code.sh  >  Download  
File: save-code.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Just Http Status Codes
Constants for the most common HTTP status codes
Author: By
Last change:
Date: 3 months ago
Size: 446 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() { git remote rm origin git remote add origin $1 git push } declare readonly gitRemotes=( git@bitbucket.org:pH_7/just-http-status-codes.git git@gitlab.com:pH-7/just-http-status-codes.git git@github.com:pH-7/JustHttpStatusCodes.git ) for remote in "${gitRemotes[@]}" do save-project-to-repo $remote done