Skip to content

Instantly share code, notes, and snippets.

@CodySwannGT
Last active April 19, 2019 20:26
Show Gist options
  • Save CodySwannGT/ea1dcb937426d8121576b59334000d58 to your computer and use it in GitHub Desktop.
Save CodySwannGT/ea1dcb937426d8121576b59334000d58 to your computer and use it in GitHub Desktop.
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[credential "https://git-codecommit.us-east-1.amazonaws.com/v1/repos/<project-name>-dev/"]
UseHttpPath = true
helper = !aws --profile <project-name>-devdeveloper codecommit credential-helper $@
[credential "https://git-codecommit.us-east-1.amazonaws.com/v1/repos/<project-name>-staging/"]
UseHttpPath = true
helper = !aws --profile <project-name>-stagingdeveloper codecommit credential-helper $@
[credential "https://git-codecommit.us-east-1.amazonaws.com/v1/repos/<project-name>-prod/"]
UseHttpPath = true
helper = !aws --profile <project-name>-proddeveloper codecommit credential-helper $@
[remote "origin"]
url = https://git-codecommit.us-east-1.amazonaws.com/v1/repos/<project-name>-dev
fetch = +refs/heads/*:refs/remotes/origin/*
pushurl = https://git-codecommit.us-east-1.amazonaws.com/v1/repos/<project-name>-dev
[remote "prod"]
url = https://git-codecommit.us-east-1.amazonaws.com/v1/repos/<project-name>-prod
fetch = +refs/heads/*:refs/remotes/prod/*
[remote "staging"]
url = https://git-codecommit.us-east-1.amazonaws.com/v1/repos/<project-name>-staging
fetch = +refs/heads/*:refs/remotes/staging/*
pushurl = https://git-codecommit.us-east-1.amazonaws.com/v1/repos/<project-name>-staging
[branch "staging"]
remote = staging
merge = refs/heads/staging
[branch "<developer-name>"]
remote = origin
merge = refs/heads/<developer-name>
[branch "master"]
remote = prod
merge = refs/heads/master
[branch "template"]
remote = template
merge = refs/heads/template
[branch "amplify-template"]
remote = amplify-template
merge = refs/heads/amplify-template
[remote "template"]
url = [email protected]:gunnertech/aws-severless-react-template.git
fetch = +refs/heads/*:refs/remotes/template/*
[remote "amplify-template"]
url = [email protected]:gunnertech/aws-severless-react-template.git
fetch = +refs/heads/*:refs/remotes/amplify-template/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment