This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
tutorials:git_quick_reference [2019/04/18 14:19] marcus.williams [Add, commit & push] |
tutorials:git_quick_reference [2019/09/19 19:59] deryn.crockett |
||
---|---|---|---|
Line 38: | Line 38: | ||
git push --force origin master | git push --force origin master | ||
</code> | </code> | ||
+ | |||
+ | Pull with forced overwrite [[https://stackoverflow.com/questions/1125968/how-do-i-force-git-pull-to-overwrite-local-files|link]]: | ||
+ | <code> | ||
+ | git fetch --all | ||
+ | git reset --hard origin/master | ||
+ | </code> | ||
+ | |||
+ | ===== Stash ===== | ||
+ | <code> | ||
+ | git stash | ||
+ | </code> | ||
+ | Records the current state of the working directory. This command saves your local modifications away and reverts the working directory to match the HEAD commit. | ||
+ | |||
+ | [[https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule|How to remove a submodule]] | ||