git cheat
how to pull from remote git repository and override the changes in my local repository
Unstage all the changes
You can unstage files from the index using
Just like git add, you can unstage files recursively by directory and so forth, so to unstage everything at once, run this from the root directory of your repository:
Merging changes and stashing
Stashing acts as a stack, where you can push changes, and you pop them in reverse order. To stash type:
Do the merge, and then pull the stash:
checking stashed changes
Check status (git status) of your repository. Every unmerged file (after you resolve conficts by yourself) should be added (git add), and if there is no unmerged file you should git commit
The modifications stashed away by this command can be listed with git stash list, inspected with git stash show
show [
To view the content of an arbitrary stash, run something like
error: You have not concluded your merge (MERGE_HEAD exists).