git
up:: Code
tags:: #coding #Knowledge
x:: git stash
git
The most useful tool in the belt.
Mostly uninteresting, you can clone, you can init, you can push and pull
What is the difference of git fetch and git pull?
intuitively:
fetchdownloads latest changes, but does not merge them into your working directorypullfetches and merges to working directory
Sometimes you want to take files from one branch and put them in another.
Maybe you realized the changes are out of scope or unrelated to the present branch.
Git has the ability to checkout specific files from other branches with the following notation:
git checkout {branch_name} {file_name}