Created
February 6, 2020 18:49
-
-
Save benjamin-firth/48ed7e231fc6f33fbbd79a4d5914702d to your computer and use it in GitHub Desktop.
Git 2.0 Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What is one command that you'll incorporate into your daily workflow and why? | |
- I used to use stash a lot more and have weened away from it. I want to start using that more. One that I definitely will use more frequently is git log, so I have a better idea of what has been going on. | |
How does rebasing work compared to a merge workflow? | |
- Rebasing essentially places the most updated version of master as the 'base' to the feature branch work you've done. That changes the timestamp logs, to put all the commits in order of sections, so they aren't scattered around everywhere. | |
Why would we ever use git stash? | |
- git stash can be nice if you make changes, that aren't quite complete. Additionally if you stash, you can switch to a feature branch and pop them back on that branch. | |
What is the primary difference between git reset —soft and git reset —hard? | |
- The hard reset changes the head, index, and working directory. The soft reset changes just the head. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment