A collection of valuable notes and resources for programmers
I used to have too many opened tabs in my browser, now I'm sharing my links with the community
Group | Topics |
---|---|
Python | Pandas - NumPy - Matplotlib |
Javascript | Node.js - React |
SQL | |
Media | ImageMagick - FFMpeg |
List existing branches:
git branch
Option -r causes the remote-tracking branches to be listed, and option -a shows both local and remote branches.
git branch -r
Change branch:
git switch otherbranch
or:
git checkout otherbranch
Create new branch:
git switch -c newbranch
Remember: git clone only brings one branch
Set upstream: https://www.youtube.com/watch?v=wBc0WcyTtOA
Puts unstaged changes aside, for example before switching branches
git stash
To also include unstaged files:
git stash -u
For more detail: https://www.youtube.com/watch?v=-aPoRU5W8lA
Typically from the main branch:
git merge other-branch
Can also be done using the option --no-commit
to perform check before applying changes
git merge and rebase: https://www.youtube.com/watch?v=0chZFIZLR_0
Conflicts: https://www.youtube.com/watch?v=HosPml1qkrg
Rewinds back 5 commits, keeping changes
git reset HEAD~5
Rewinds back 3 commits, discarding changes
git reset --hard HEAD~3
git reset deletes commits, you can also use the revert command to reverse commits by making new commits that cancel changes.
For more detail: https://www.youtube.com/watch?v=zV-XwShNx3o
https://www.youtube.com/watch?v=jRLGobWwA3Y
Free resources for developers https://free-for.dev/#/
Online development environment https://codesandbox.io/
Color Palettes https://colorhunt.co/
HTML Templates https://htmlrev.com/
Premature optimization is the root of all evils (unknown author)
Contributions are welcomed