A simple web page demonstrating basic HTML, CSS, and Git usage.
This repository contains a basic "Hello World" web page built with:
- HTML5 - Semantic markup structure
- CSS3 - Modern styling with gradients and responsive design
- Git - Version control for tracking changes
GitStart/
├── index.html # Main HTML file
└── README.md # This file
Simply open index.html in your web browser to see the Hello World page.
- Responsive design that works on desktop and mobile
- Modern gradient background
- Clean, professional styling
- Git repository information display
Before using Git, configure your identity:
# Set your name (replace "Your Name" with your actual name)
git config --global user.name "Your Name"
# Set your email (replace with your actual email)
git config --global user.email "your_email@example.com"
# Verify your configuration
git config --listTo get started with this repository:
# Initialize the repository (if not already done)
git init
# Add files to staging
git add .
# Make your first commit
git commit -m "Initial commit: Add Hello World web page"
# Check status
git statusTo share your repository on GitHub:
-
Fork the repository on GitHub:
- Go to the original repository on GitHub
- Click the "Fork" button in the top-right corner
- This creates a copy in your GitHub account
-
Add remote origin:
# Add your forked repository as remote origin git remote add origin https://github.com/YOUR_USERNAME/GitStart.git # Verify remote was added git remote -v
-
Push to GitHub:
# Push your commits to GitHub (first time) git push -u origin master # For subsequent pushes git push
-
Pull updates (if working with others):
# Pull latest changes from remote git pull origin master # Alternative: Pull and rebase (cleaner history) git pull --rebase origin master # Pull from a specific branch git pull origin main # Pull all branches from remote git fetch --all git pull --all
-
Advanced Pull Commands:
# Check what changes will be pulled (without actually pulling) git fetch origin git log HEAD..origin/master --oneline # Pull with verbose output to see what's happening git pull -v origin master # Pull and automatically resolve conflicts with local changes git pull --strategy=recursive -X theirs origin master # Reset to match remote exactly (WARNING: loses local changes) git fetch origin git reset --hard origin/master
-
Handling Merge Conflicts:
# If conflicts occur during pull git status # See conflicted files # Edit files to resolve conflicts git add . # Stage resolved files git commit # Complete the merge # Abort the pull if you want to start over git merge --abort
This project serves as a learning tool for:
- Basic web development (HTML/CSS)
- Git version control
- Repository management
- Web page deployment
This project is open source and available under the MIT License.