This project is a simulated environment to practice common Git commands. It provides a simple interface to execute Git commands and see their effects.
index.html: The main HTML file that sets up the structure of the web page.style.css: The CSS file that styles the web page.code.js: The JavaScript file that contains the logic for processing Git commands.README.md: This file.
- Open
index.htmlin a web browser. - Use the input field to type Git commands.
- Press
Enterto execute the command. - View the output and command history on the page.
git initgit add [filename]git commit -m "message"git statusgit loggit branchgit checkoutgit mergegit remotegit pushgit pullgit stash
- Initialize a new repository:
git init
- Add a file to the staging area:
git add filename
- Commit changes with a message:
git commit -m "Initial commit" - Check the status of the repository:
git status
- View the commit history:
git log