This file contains 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 | |
# The script is pretty simple. It takes two arguments: the source directory and the new origin. It then adds the new origin as a remote to the source directory and pushes all branches to the new origin. | |
# After that, it asks if you want to replace the CodeCommit remote with the new origin. If you choose to replace it, the script will remove the CodeCommit remote and rename the new origin to origin. | |
# To run the script, you can use the following command: | |
# bash main.sh /path/to/source/directory | |
sourceDir=$1 | |
newRemoteName=$2 | |
newRemote=$3 |
This file contains 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
interface FooParams { | |
name: string | |
} | |
class Foo { | |
constructor(params: FooParams) { | |
this = {...this, ...params} | |
} | |
} |
This file contains 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
z: 45 | |
a: 9 | |
This is the value of z / x = 20 | |
a: 20 |