PES
EN English 한국어 日本語 中文 हिन्दी বাংলা اردو Español Português Français Deutsch Русский العربية Bahasa Indonesia Tiếng Việt ไทย Türkçe

How to enable notifications

Notifications are unavailable in this browser or on this address. Try a supported browser on the secure PES site.

If notifications are blocked, allow them in your browser settings.

  1. Open the site controls beside the address bar, or your browser’s site settings. Set Notifications for this site to Allow.
  2. In your device settings, allow notifications for your browser and check Do Not Disturb or Focus.
  3. Return to PES, reload the page, and use the bell to enable notifications.

On iPhone or iPad, add PES to your Home Screen, open it there, then allow notifications.

My learning progress
  1. How to use AI
  2. Terminal commands
  3. Advanced AI
  4. Vibe coding
  5. AI certification Getting ready
  6. Keyboard
See details
All steps
Step 9

Using GIT with AI

Hand your diff to an AI for a commit message, work through conflicts together — and never run a destructive command you haven't read.

What you'll learn

  • You can get a usable commit message from a diff
  • You can work through a merge conflict with an AI and still decide yourself
  • You verify destructive commands before running them, and know reflog can save you

If writing commit messages feels like a chore, hand the whole output of git diff --staged to an AI and ask for one. Reading code and summarizing what changed is something these models genuinely do well. Don't paste the result verbatim, though — fill in the why yourself. An AI can see what changed; it cannot know why you decided to change it.

AI helps with conflicts too. Paste the conflicted region and explain what each branch was trying to do, and it will point out how to combine them and what to watch for. The final call is still yours: it doesn't know your product's rules. After merging, run the tests — always.

Finally, the safety rule. Read what an AI-suggested GIT command actually does before you paste it. git reset --hard, git push --force, and git clean -fd produce results you cannot undo. And if you already ran one by mistake, don't panic: git reflog keeps a record of where HEAD has been, and you can usually find the lost commit's hash there and recover it.

Commands for this step

Don't just read them — type them into a real terminal. Your hands have to remember, not your eyes.

git diff --staged
The material you hand to an AI when asking for a commit message.
git log --oneline -20
Recent history in brief — good context to include when asking about a change.
git config --global alias.lg "log --oneline --graph --all"
Register a shortcut so git lg prints the graph log you use every day.
git reflog
Every place HEAD has been. This is what saves you after a mistaken reset.

Guidelines

AI

AI Certification

Study

Vibe Coding

Game

Practice

Tutors

Chat

Forum

Create

Community

More

Glossary

Pick a word you don't know. You'll see a simple explanation and related terms.

No matching term yet.

Pick a term to see its explanation.