This file contains instructions to verify that code is 200% uploaded to GitHub cloud (not just local cache).
git add .
git commit -m "your descriptive message here"git push origin main# Check remote (GitHub cloud) commit hash
git ls-remote origin main
# Check local commit hash
git log --oneline -1
# Both should show the SAME commit hash
# If they match, it's 200% in the cloud!# Fetch latest from GitHub without merging
git fetch origin main
# Check if local is up to date with remote
git status
# Should show: "Your branch is up to date with 'origin/main'"# Get latest commit from GitHub API
curl -s https://api.github.com/repos/IroScript/Alco-Depot-Data-Extractor/commits/main | Select-String -Pattern '"sha"' | Select-Object -First 1
# Compare with local
git rev-parse HEAD
# If SHA matches, it's definitely in the cloud!# Open repository in browser
start https://github.com/IroScript/Alco-Depot-Data-Extractor
# Check:
# - Latest commit message matches yours
# - Commit time shows "just now" or "X seconds ago"
# - All folders show same recent time (not "2 days ago")✅ Push is 200% in cloud if:
git ls-remote origin mainshows same hash asgit log -1git statusshows "up to date with 'origin/main'"- GitHub API returns same SHA as local
git rev-parse HEAD - GitHub website shows your latest commit message
- All folders on GitHub show recent timestamp (not old dates)
❌ Push failed if:
- Remote hash differs from local hash
git statusshows "ahead of origin/main"- GitHub website shows old commit message
- Folders still show "2 days ago" or old timestamps
# Solution: Push again
git push origin main# Solution: Force push (use carefully!)
git push origin main --force# Solution: Hard refresh browser
# Press Ctrl + Shift + R (or Ctrl + F5)
# Wait 30 seconds for GitHub cache to clear# Run this after git push to verify
git ls-remote origin main; git log --oneline -1; Write-Host "`nIf both hashes match, push is 200% in cloud!" -ForegroundColor GreenThese settings are already configured:
# Always use 'main' as default branch
git config --global init.defaultBranch main
# Only push current branch
git config --global push.default current- GitHub Username: IroScript
- Email: md.kamruzzamanirak@gmail.com
- Repository: https://github.com/IroScript/Alco-Depot-Data-Extractor
- Default Branch: main
- ALWAYS check all files before committing
- ALWAYS review changes with
git statusandgit diff - ALWAYS ensure no unintended files are being committed
- ALWAYS verify the correct files are staged
- NEVER delete any old commit messages
- NEVER delete any old commits from history
- NEVER use
git reset --hardto remove commits - NEVER use
git push --forceto overwrite history (unless explicitly asked) - NEVER use
git rebaseto rewrite history - NEVER use
git filter-branchorgit filter-repo
- NEVER delete any old commit messages
- NEVER delete any old info from this file or any other documentation
- NEVER remove or modify existing rules - only ADD new ones
- NEVER overwrite previous instructions - append new instructions instead
- Old commits contain project history
- They show what was done and when
- They help track bugs and features
- They are needed for rollback if something breaks
- Deleting commits = losing work permanently
- Keep all commits in history
- Add new commits on top of old ones
- Use
git revertif you need to undo something (creates new commit) - Use branches for experiments
- Tag important milestones
- Check
git reflogto find lost commits - Check if they exist in remote:
git log origin/main --oneline --all - Check other branches:
git branch -a - Contact user immediately if history is lost
When you want to push and verify:
- Follow steps 1-3 above
- Run verification commands
- Check success indicators
- If all ✅ pass, your code is 200% in GitHub cloud!
Note: Cache vs Cloud
- Local cache: Only on your computer
- GitHub cloud: Accessible from anywhere, backed up, permanent
- Verification ensures it's in cloud, not just local cache