Skip to content

Learn Git Fundamentals

Category Git & GitHub
Status ✅ Completed
Repo nextwork-learn-git-fundamentals
Original NextWork guide nextwork.ai
Proof Official NextWork write-up: web · PDF

Learning project

Practice work following a NextWork guide, separate from my production projects.

📚 NextWork learning project. This is a practice project I built while working through NextWork's Learn Git Fundamentals guide. It is part of my Learning portfolio and is fully separate from my production projects.

Category: Learning › Git & GitHub
Status: ✅ Completed

Proof: Official NextWork write-up: web · PDF

Overview

I practised the core Git loop: create a file, commit it several times, branch, make competing edits, resolve the merge conflict by hand, and push the result to GitHub. The practice.sh script replays the local part. The GitHub part happened on this repo itself (see learning-log.md, the update-goals branch and the merge commit in the history).

Summary

Every step ran for real: local commits, a branch, a merge conflict I resolved, and a push to this public repo.

The checks behind this are in docs/verification.txt.

Skills & tools

Git, GitHub, Branching, Merge conflicts, Markdown

What I built

  • practice.sh: the full local session (config, commits, branch, conflict, resolution, log graph).
  • This repository's own history: learning-log.md was built over several commits, edited in parallel on main and update-goals, and merged with a hand-resolved conflict.
  • Both branches are pushed, so the commit graph is visible on GitHub.

How to run

bash practice.sh            # replays the whole session in a temp folder
bash practice.sh ./sandbox  # or in a folder you choose

Verification

I ran the verification command on 2026-12-02. The full output is in docs/verification.txt.

bash practice.sh

Notes

docs/post-publish.txt has the transcript of the GitHub part (branch push, conflict, merge, git ls-remote). The secret mission is a profile README. I already have one (SFitz911/SFitz911), so I didn't create another.


Original project: https://nextwork.ai/projects/8bf3bcb5-a70d-418a-9c76-251365f69028 · Part of my NextWork Learning portfolio (hub).

Verification output

From docs/verification.txt:

$ bash practice.sh


=================== Configure Git and create the Markdown file ===================

$ git status --short
?? learning-log.md

=================== Initialize the repo and make the first commits ===================

$ git add learning-log.md

$ git commit -qm Add learning log

$ git commit -qam Add day 2 notes

$ git commit -qam Add goals section

$ git log --oneline
343dcce Add goals section
50ca911 Add day 2 notes
a3d0bc2 Add learning log

=================== Create a branch and make parallel changes ===================

$ git switch -c update-goals
Switched to a new branch 'update-goals'

$ git commit -qam Expand goals on branch

$ git switch main
Switched to branch 'main'

$ git commit -qam Edit goals on main

=================== Merge and resolve the conflict ===================
$ git merge update-goals
Auto-merging learning-log.md
CONFLICT (content): Merge conflict in learning-log.md
Automatic merge failed; fix conflicts and then commit the result.

$ git status --short
UU learning-log.md
--- conflicted file ---
# My Learning Log

## Day 1
- Installed Git and configured my name/email.

## Day 2
- Learned git add, git commit and git log.

## Goals
<<<<<<< HEAD
- Push my first repo to GitHub and share it publicly.
=======
- Push my first repo to GitHub and open a pull request.
>>>>>>> update-goals
--- resolved file ---
# My Learning Log

## Day 1
- Installed Git and configured my name/email.

## Day 2
- Learned git add, git commit and git log.

## Goals
- Push my first repo to GitHub, share it publicly, and open a pull request.

$ git add learning-log.md

$ git commit -qm Merge update-goals and resolve the goals conflict

$ git log --oneline --graph --all
*   8b8fe4e Merge update-goals and resolve the goals conflict
|\  
| * 93061d2 Expand goals on branch
* | 957d11c Edit goals on main
|/  
* 343dcce Add goals section
* 50ca911 Add day 2 notes
* a3d0bc2 Add learning log
OK: no conflict markers left

$ git branch -a
* main
  update-goals

[exit code 0]