Know How Guide and Hands on Guide for AWS
Before you start, please complete codecommit-setup
On the Create repository page, create a MyDemoRepo repository.
Upload README.md
file to default master branch.Commit changes
You can find the clone url from:
Here I use the https url
git clone https://git-codecommit.cn-northwest-1.amazonaws.com.cn/v1/repos/MyDemoRepo
Cloning into 'MyDemoRepo'...
Username for 'https://git-codecommit.cn-northwest-1.amazonaws.com.cn':
Password for 'https://git-codecommit.cn-northwest-1.amazonaws.com.cn':
remote: Counting objects: 3, done.
Unpacking objects: 100% (3/3), done.
Adding, committing, and pushing files to the CodeCommit repository.
git config --local user.name "your-user-name"
git config --local user.email your-email-address
# create new files
# git commit
git add .
git commit -m "add sample linux app"
# git push
git push origin master
Browser the changes on CodeCommit Console
git status
On branch DevBranch
Changes not staged for commit:
(use “git add
git add README.md git commit -m “update from dev branch” [DevBranch ed573c6] update from dev branch 1 file changed, 1 insertion(+), 1 deletion(-)
git push origin DevBranch
2. create a pull request (PR)
Create the PR on DevBranch
![codecommit-branches](/aws-is-how/devops/codecommit/media/codecommit-branches.png)
![codecommit-branches-pr](/aws-is-how/devops/codecommit/media/codecommit-branches-pr.png)
3. Mergethe PR
Mergethe PR
![codecommit-pr-merge](/aws-is-how/devops/codecommit/media/codecommit-pr-merge.png)
![codecommit-pr-merge-virtual](/aws-is-how/devops/codecommit/media/codecommit-pr-merge-virtual.png)
```bash
# Fetch the change
git checkout master
git pull
# If you want to continue DevBranch
git checkout DevBranch
git pull
git checkout master
git log