{"id":27048714,"url":"https://github.com/devbyray/git-terminal-simulator","last_synced_at":"2026-04-05T23:33:24.362Z","repository":{"id":286140477,"uuid":"960504566","full_name":"devbyray/git-terminal-simulator","owner":"devbyray","description":"Learn git in the Git Terminal Simulator","archived":false,"fork":false,"pushed_at":"2025-04-04T14:50:28.000Z","size":136,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T19:26:16.737Z","etag":null,"topics":["git","github","terminal"],"latest_commit_sha":null,"homepage":"https://git-terminal-simulator.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devbyray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-04T14:49:14.000Z","updated_at":"2025-04-10T03:00:26.000Z","dependencies_parsed_at":"2025-04-04T15:48:13.101Z","dependency_job_id":null,"html_url":"https://github.com/devbyray/git-terminal-simulator","commit_stats":null,"previous_names":["devbyray/git-terminal-simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devbyray/git-terminal-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbyray%2Fgit-terminal-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbyray%2Fgit-terminal-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbyray%2Fgit-terminal-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbyray%2Fgit-terminal-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devbyray","download_url":"https://codeload.github.com/devbyray/git-terminal-simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbyray%2Fgit-terminal-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31454197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","github","terminal"],"created_at":"2025-04-05T07:15:52.910Z","updated_at":"2026-04-05T23:33:24.347Z","avatar_url":"https://github.com/devbyray.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Terminal Simulator\n\nA fun, interactive Git terminal simulator built with Vue 3, Vite, and Tailwind CSS v4. Practice Git commands in a safe, browser-based environment that mimics a unicorn-themed macOS terminal interface.\n\n![Git Terminal Simulator Screenshot](./screenshot.png)\n\n## ✨ Features\n\n- 🔄 Support for essential Git commands and workflows\n- 🌿 Full branch management with proper file tracking per branch\n- 🔀 Realistic merge conflict simulation and resolution\n- 📝 File creation and editing capabilities\n- 🧪 Comprehensive test suite for Git command logic\n- 🎨 Modern, responsive UI with Tailwind CSS v4\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Node.js (v16 or higher)\n- npm or yarn\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/devbyray/git-terminal-simulator.git\n   cd git-terminal-simulator\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   # or\n   yarn install\n   ```\n\n3. Start the development server:\n   ```bash\n   npm run dev\n   # or\n   yarn dev\n   ```\n\n4. Open your browser and navigate to:\n   ```\n   http://localhost:5173/\n   ```\n\n## 🧙‍♂️ Using the Simulator\n\n### Supported Commands\n\nThe Git Terminal Simulator supports the following commands:\n\n```bash\n# Repository operations\ngit init                      # Initialize a new Git repository\ngit status                    # Show the working tree status\ngit log                       # Show commit logs\ngit help                      # Show help information\n\n# Staging \u0026 committing\ngit add \u003cfile\u003e                # Add file contents to the index\ngit add .                     # Add all files to the index\ngit commit -m \"message\"       # Record changes to the repository\n\n# Branch management\ngit branch                    # List all branches\ngit branch \u003cname\u003e             # Create a new branch\ngit checkout \u003cbranch\u003e         # Switch to existing branch\ngit checkout -b \u003cname\u003e        # Create and switch to a new branch\ngit switch \u003cbranch\u003e           # Switch to existing branch\ngit switch -c \u003cname\u003e          # Create and switch to a new branch\ngit merge \u003cbranch\u003e            # Merge a branch into your current branch\n\n# File operations\nls                            # List files in the current directory\ntouch \u003cfile\u003e                  # Create a new file\nedit \u003cfile\u003e \u003ccontent\u003e         # Edit file content\ncat \u003cfile\u003e                    # View file content\n\n# Terminal operations\nhelp                          # Show help information\nclear                         # Clear the terminal\n```\n\n## 👨‍🏫 Teaching with Git Terminal Simulator\n\nThe Git Terminal Simulator is designed to be an effective teaching tool for Git concepts. Here's how you can use it in educational settings:\n\n### For Instructors\n\n#### 1. Live Demonstrations\nUse the simulator during presentations to demonstrate Git commands and workflows without worrying about setup or environment issues. The simulator provides a consistent experience across all platforms.\n\n#### 2. Step-by-Step Exercises\nCreate guided exercises for students to follow along:\n\n**Example: Basic Git Workflow Exercise**\n1. Initialize a repository with `git init`\n2. Create a file with `touch README.md`\n3. Add content with `edit README.md This is my first file`\n4. Stage the file with `git add README.md`\n5. Commit the changes with `git commit -m \"Initial commit\"`\n6. View the commit history with `git log`\n\n#### 3. Merge Conflict Training\nOne of the most challenging aspects of Git for beginners is handling merge conflicts. Use the simulator to:\n\n1. Create branches with `git branch feature` and `git switch feature`\n2. Make different changes to the same file in different branches\n3. Attempt to merge with `git merge feature`\n4. Show how to resolve conflicts by:\n   - Viewing the conflict with `cat \u003cfile\u003e`\n   - Editing the file to resolve conflicts\n   - Staging the resolved file with `git add \u003cfile\u003e`\n   - Completing the merge with `git commit`\n\n#### 4. Sample Teaching Modules\n\n**Module 1: Git Basics (45-60 minutes)**\n- Repository initialization\n- Making changes and committing\n- Viewing history\n\n**Module 2: Branching and Merging (60-90 minutes)**\n- Creating and switching branches\n- Making changes in different branches\n- Merging changes\n- Resolving conflicts\n\n**Module 3: Git Workflows (90-120 minutes)**\n- Feature branch workflow\n- Git Flow introduction\n- Pull request simulation\n\n### For Learners\n\n#### Self-Guided Practice\n\n1. **Start with the basics**: Initialize a repository, create files, and make commits.\n   ```bash\n   git init\n   touch README.md\n   edit README.md \"# My Project\"\n   git add README.md\n   git commit -m \"Initial commit\"\n   ```\n\n2. **Practice branching**: Create multiple branches and switch between them.\n   ```bash\n   git branch feature\n   git switch feature\n   # or\n   git switch -c feature2  # Create and switch in one command\n   ```\n\n3. **Create merge conflicts intentionally**: This is a safe environment to practice handling conflicts.\n   ```bash\n   # In main branch\n   edit README.md \"# Main branch content\"\n   git add README.md\n   git commit -m \"Update in main\"\n   \n   # Switch to feature branch\n   git switch feature\n   \n   # Make conflicting changes\n   edit README.md \"# Feature branch content\"\n   git add README.md\n   git commit -m \"Update in feature\"\n   \n   # Try to merge (will create conflict)\n   git switch main\n   git merge feature\n   \n   # Resolve the conflict\n   cat README.md  # View the conflict\n   edit README.md \"# Resolved content\"\n   git add README.md\n   git commit -m \"Resolve merge conflict\"\n   ```\n\n#### Learning Path\n\n1. **Git Fundamentals**\n   - Repository initialization\n   - Basic commit workflow\n   - Viewing history\n\n2. **Branching**\n   - Creating branches\n   - Switching between branches\n   - Merging branches\n\n3. **Advanced Topics**\n   - Handling merge conflicts\n   - Branch management strategies\n   - Best practices for commits and messages\n\n## 🤝 Contributing\n\nContributions are welcome! Here's how you can contribute:\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n### Development\n\nThe project uses Vue 3 with the Composition API and Vite as the build tool. The main components are:\n\n- `TerminalContainer.vue`: Main container for the terminal interface\n- `TerminalInput.vue`: Handles user input\n- `TerminalOutput.vue`: Displays command outputs\n- `FormattedHelpOutput.vue`: Displays formatted help content\n- `useGitCommands.js`: Core logic for Git command processing\n\n### Project Structure\n\n```\ngit-terminal-simulator/\n├── public/              # Static assets\n├── src/                 # Source files\n│   ├── components/      # Vue components\n│   ├── composables/     # Vue composables (including useGitCommands.js)\n│   ├── App.vue          # Main application component\n│   ├── main.js          # Application entry point\n│   └── style.css        # Global styles\n├── tests/               # Test files\n├── index.html           # HTML entry point\n├── package.json         # Dependencies and scripts\n├── tailwind.config.js   # Tailwind CSS configuration\n└── vite.config.js       # Vite configuration\n```\n\n### Running Tests\n\n```bash\nnpm test\n# or\nyarn test\n```\n\n## 📝 Future Enhancements\n\n- Support for remote repository operations (clone, push, pull)\n- Visual representation of the Git commit graph\n- More advanced Git commands (rebase, cherry-pick, etc.)\n- Customizable terminal themes\n- Shareable scenarios for teaching specific Git concepts\n\n## 📜 License\n\nThis project is licensed under the [European Union Public Licence (EUPL)](../LICENSE) - see the LICENSE file for details.\n\n## 🙏 Acknowledgments\n\n- Inspired by the macOS Terminal interface\n- Built with [Vue 3](https://vuejs.org/), [Vite](https://vitejs.dev/), and [Tailwind CSS v4](https://tailwindcss.com/)\n- Special thanks to all contributors and the Git community\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbyray%2Fgit-terminal-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevbyray%2Fgit-terminal-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbyray%2Fgit-terminal-simulator/lists"}