This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Commit { | |
constructor(sha, payload) { | |
this.sha = sha; | |
this.repository = payload.repository; | |
this.created = new Date(); | |
} | |
toJSON() { | |
return Object.assign({}, this, { | |
created: this.created.toString() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Para configurar o proxy via comando direto no bash(terminal) use 'export' ## | |
## caso sua senha possua caractéres especiais, substitua desssa forma: ## | |
! - %21 | |
@ - %40 | |
# - %23 | |
$ - %24 | |
export http_proxy="http://<user>:<pass>@<proxy>:<port>/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |