Skip to content

Instantly share code, notes, and snippets.

View AbdaliDahir's full-sized avatar
🍀
Focusing

AbdelAli Dahir AbdaliDahir

🍀
Focusing
View GitHub Profile
@AbdaliDahir
AbdaliDahir / branch-fu.md
Created October 14, 2022 14:57 — forked from unbracketed/branch-fu.md
Moving commits between branches

Example: Moving up to a few commits to another branch

Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.

cherry-pick does support a range of commits, but if you have merge commits in that range, it gets really complicated

git checkout branch-B
git cherry-pick X
git cherry-pick Y
@AbdaliDahir
AbdaliDahir / remove-node-modules.md
Created September 7, 2021 10:50 — forked from lmcneel/remove-node-modules.md
How to remove node_modules after they have been added to a repo

How to remove node_modules

  1. Create a .gitignore file in the git repository if it does not contain one

touch .gitignore

  1. Open up the .gitignore and add the following line to the file

**/node_modules

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@AbdaliDahir
AbdaliDahir / History\-1118aa41\entries.json
Last active September 4, 2022 11:16
vs code extension
{"version":1,"resource":"file:///home/samurai/Desktop/mern-app/frontend/src/components/TodoDetails.js","entries":[{"id":"bWtI.js","timestamp":1658952809810},{"id":"pbFr.js","timestamp":1658952866537},{"id":"45am.js","timestamp":1658952894237},{"id":"6vbL.js","source":"renamed.source","timestamp":1658952965368}]}