You've already forked devops-exercises
mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2025-07-15 23:54:32 +02:00
Name it instead "topics" so it won't be strange if some topics included "exercises" directory.
21 lines
328 B
Markdown
21 lines
328 B
Markdown
## Branch 01 - Solution
|
|
|
|
```
|
|
cd some_repository
|
|
echo "master branch" > file1
|
|
git add file1
|
|
git commit -a -m "added file1"
|
|
git checkout -b dev
|
|
echo "dev branch" > file2
|
|
git add file2
|
|
git commit -a -m "added file2"
|
|
```
|
|
|
|
Verify:
|
|
|
|
```
|
|
git log (you should see two commits)
|
|
git checkout master
|
|
git log (you should see one commit)
|
|
```
|