-
Change Directory back to your work folder on the Bowen drive (
/{letter}/work/{COHORT}/{IDENT}/
) -
And then into your recipe folder
content/week01/recipe/
-
IMPORTANT: Switch to your
main
ormaster
branch, if not already on it. -
Create a new file named
thoughts.txt
, write some random thoughts to it, then add and commit this new file. -
Make a new branch named
more-thoughts
and switch to it. -
Add some more thoughts to
thoughts.txt
, then again add and commit these changes. -
Switch back to your
main
ormaster
branch. -
A file can be renamed, with the renaming tracked by git, by using ‘
git mv
’. Try it out now with:
git mv thoughts.txt musings.txt
git status
git commit -m "renamed thoughts to musings"
git graph
ls
- Note that you now have a file named "musings.txt", but also another branch (
more-thoughts
) where you had made additions to a file still named "thoughts.txt".
As "thoughts.txt" no longer exists, what will happen when we mergemore-thoughts
in tomain
/master
?
Try it out! :
git merge more-thoughts
What has happened?