git repo for local machine demo. nothing to see here. just practicing. :)
- Create a new repository locally on your machine.
- Create a new Github repository. Name it whatever you want.
- Connect your local repo to the Github repo.
- Optional: rename the default branch from master to main.
- Make a new file called
favorites.txtLeave it empty. Make your first commit on themainbranch. - Push up your
mainbranch to Github! Make sure you see your emptyfavorites.txtfile on Github. - Next, create two branches:
foodsandmovies - Switch to the
foodsbranch. Add three (or more) of your favorite foods to thefavorites.txtfile. Add and commit your changes on thefoodsbranch. - Switch to the
moviesbranch and add three or more of your favorite movies to thefavorites.txtfile. Add and commit your changes on the movies branch. - Push up your
foodsbranch to Github. Make sure you see it on Github! - Push up your
moviesbranch to Github. Make sure you see it on Github! - Merge the
foodsbranch into themainbranch. Then merge themoviesbranch into themainbranch. If necessary, resolve conflicts so that you end up with your favorite foods and favorite movies in the samefavorites.txtfile. - Push up the latest work on your
mainbranch to Github.