Git

Stage specific chunk of lines

git add -p

Use s to split the hunks. It’s useful when you don’t want to stage the entire chunk.

Update an outdated branch based by cherry-picking

git cherry-pick <commit-hash>

To find a commit hash, simply do git log <branch>.

Pull From Another Branch

Pulling from a local branch

git pull origin <branch>