Skip to content

Megabyte

Web Development

  • About
  • Community
  • Contact

Megan 🐹 is a web developer specializing in WordPress. She is a Senior Developer at Blackbird, an award-winning web agency. Neopets first introduced her to coding.

She also enjoys competitive swimming, reading, and taking care of her pets, Sammy (calico cat) and Artie (bearded dragon).

Search Posts

Categories

Tag: git

Move Last Commit to Another Branch (not pushed)

Posted December 28, 2019February 7, 2020

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: ResourcesTags: git

Powerful git Commands (updated 2/11)

Photo by JJ Ying via Unsplash (cropped & edited)
Posted December 27, 2018February 11, 2019

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: UncategorizedTags: git Version Control
Reach Me: Get help on Codementor
Content Disclaimer