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.html
in a web browser. - Use the input field to type Git commands.
- Press
Enter
to execute the command. - View the output and command history on the page.
git init
git add [filename]
git commit -m "message"
git status
git log
git branch
git checkout
git merge
git remote
git push
git pull
git 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