Skip to content

Megabyte

Community Champion & Project Manager

  • About Me
  • Open Source
  • Certifications

If you appreciate my WordPress open source project contributions, please consider donating to my book fund.

If you have web dev work you need help with, check out my services.

If you are a web dev or agency and need PM/sales work, reach out here!

🍉

Tag: git

Move Last Commit to Another Branch (not pushed)

Posted December 28, 2019October 20, 2024

If you just made a commit and realized it was on the wrong branch, use: git reset HEAD~1 git checkout correct-branch This will remove the unpushed commit so that you can make the change on the correct branch. Note: You will have to write your commit message again. The best […]

Category: Web DevelopmentTags: git

Powerful git Commands (updated 2/11)

Photo by JJ Ying via Unsplash (cropped & edited)
Posted December 27, 2018October 20, 2024

Pickaxe (with & without specified file) Search diffs for a particular string. Purpose: If you’re trying to figure out when a particular line was changed and by who. Across all diffs In a Specific File Source More Documentation on git log –merged Purpose: When you’re trying to identify branches that […]

Category: Web DevelopmentTags: git Version Control
Links: GitHub LinkedIn
Content Disclaimer