Marcellini’s Blog
  • Home
  • 🧭 Explore
    • 🏷️ Tags
    • 📂 Categories
  • 🧠 Exact Sciences
    • 🧮 Mathematics
    • 📊 Statistics
    • 🔭 Physics
    • 💻 Programming
  • 📝 Personal Blog
    • 📝 Personal Blog
    • 👤 About Me and the Blog
  • 📘 Courses
    • 🧮 Math Courses
    • 📊 Statistics Courses
  • 🗺️ Site Map
  • PT 🇧🇷
  • Contact

In This Module

  • 1 🚀 Basic update workflow
  • 2 🔍 Quick lookups
  • 3 🛑 If a rebase goes wrong
  • 4 🌐 Check remote (always use SSH)
  • 5 ⚡ Useful configurations (one-time)
  • 6 🔗 Useful Links

📌 Git Cheatsheet for Blog do Marcellini

git
programming
tutorials
A quick and practical guide to the most used Git commands in the blog workflow.
Author

Celso Marcellini

Published

September 19, 2025


← Back to the Programming Section 👨‍💻


1 🚀 Basic update workflow

  1. Check file status
    git status

  2. Add all modified files
    git add .

  3. Commit with a message
    git commit -m "Blog updates"

  4. Make sure it’s up to date with remote (rebase helps avoid conflicts)
    git pull --rebase

  5. Push changes to GitHub
    git push


2 🔍 Quick lookups

  • Show summarized history
    git log --oneline --graph --decorate -n 10

  • See differences before commit
    git diff


3 🛑 If a rebase goes wrong

  • Abort ongoing rebase
    git rebase --abort

  • Continue after resolving conflicts
    git rebase --continue


4 🌐 Check remote (always use SSH)

  • Show current remote URL
    git remote -v

  • If it shows HTTPS, switch to SSH
    git remote set-url origin git@github.com:marcellini-celso/REPO_NAME.git


5 ⚡ Useful configurations (one-time)

  • Always rebase when pulling
    git config --global pull.rebase true

  • Automatically stash local changes during rebase
    git config --global rebase.autoStash true

  • Show current branch sorted by last commit
    git config --global branch.sort -committerdate


📌 Tip: keep this cheatsheet nearby for quick reference.
It covers 99% of what you’ll use in the update workflow of the PT and EN blogs.


← Back to the Programming Section 👨‍💻


🔝 Back to Top


Blog do Marcellini — Exploring Mathematics, Statistics, and Physics with Rigor and Beauty.

Note

Created by Blog do Marcellini with ❤️ and code.

6 🔗 Useful Links

  • 🧑‍🏫 About the Blog
  • 💻 Project GitHub
  • 📬 Contact via Email

© 2025 - Marcellini’s Blog

 

📬 Contact via Email
💻 GitHub Repository