Research what each of these Git commands will do. Create a gist that you can share with your team.
- https://git-scm.com/docs/git-stash
- allows you to save your work and go to a clean working directory(to your last commit)
- reverts back to where you were before you used 'git stash'
- returns a condensed version of git log: Author(number of commits) Commit Message
- does not contain commit hash, merge information for branches, or date/time
- allows you to amend commit messages that have not been pushed online
- discards changes you've made since your last commit (I think)
git reset --soft
- moves back to last commit without discarding changes (I think)
git reset --hard HEAD~2
- moves the head back 2 commits
Find three different ways to display the git log. One example is git log --oneline. git log --graph git log --merges