harbor run -t LiteCoder/setup-git-workshop-repoharbor download LiteCoder/setup-git-workshop-repoCreate a Git repository at /app/workshop-repo with a realistic development history demonstrating branching, merging, rebasing, conflict resolution, and tagging.
1. Repository Initialization
/app/workshop-repo.Workshop Instructor, email instructor@workshop.dev.2. Initial Project Structure (on main branch)
Create an initial commit on main containing at least:
README.md — a project readme with at least one heading and a short description..gitignore — containing at least 3 ignore patterns (e.g., node_modules/, *.log, .env).3. develop Branch
develop branch from main.develop, each adding or modifying a different file. The files must include:
src/app.jssrc/utils.js4. Feature Branches
Create at least 2 feature branches off develop:
feature/auth — must contain at least 2 commits, adding or modifying a file src/auth.js.feature/api — must contain at least 2 commits, adding or modifying a file src/api.js.5. Merge Commits
feature/auth into develop using a merge commit (no fast-forward). The merge commit message must contain the string feature/auth.feature/api into develop using a merge commit (no fast-forward). The merge commit message must contain the string feature/api.6. Hotfix Branch
hotfix/urgent-fix branch from main.hotfix/urgent-fix into main using a merge commit (no fast-forward). The merge commit message must contain the string hotfix.7. Conflict Resolution
conflict (case-insensitive).8. Rebase
feature/rebase-demo off develop.feature/rebase-demo onto the latest develop (after the feature merges). After rebasing, feature/rebase-demo must share a linear history with develop (i.e., develop is an ancestor of feature/rebase-demo).9. Tags
Create at least 2 annotated tags:
v1.0.0 — pointing to a commit on main.v2.0.0 — pointing to a commit on develop or main.Both tags must be annotated (not lightweight).
10. Summary Output
After building the repository, generate a file /app/workshop-repo/workshop-summary.json with the following structure:
{
"branches": ["main", "develop", "feature/auth", "feature/api", "hotfix/urgent-fix", "feature/rebase-demo"],
"tags": ["v1.0.0", "v2.0.0"],
"total_commits": <integer: total number of commits in the repo across all branches>,
"merge_commits": <integer: number of merge commits in the repo>
}
branches: array of branch names that exist in the final repository (must include at least the 6 listed above).tags: array of tag names (must include at least the 2 listed above).total_commits: total unique commit count across all branches (integer, must be >= 15).merge_commits: count of merge commits (integer, must be >= 3).develop checked out.