Skip to content

Instantly share code, notes, and snippets.

@Jessiewithani
Created February 6, 2020 18:54
Show Gist options
  • Save Jessiewithani/ab0df52b8d9186d96afdf25d34688bc6 to your computer and use it in GitHub Desktop.
Save Jessiewithani/ab0df52b8d9186d96afdf25d34688bc6 to your computer and use it in GitHub Desktop.

1. what is one command that you'll incorporate into your daily workflow and why?

- git --grep for me seems really helpful because you get to search through all of your commit messages.

2. How does rebasing work compared to a merge workflow?

- rebasing adds your commits on the top of the master while the merge workflow merges commits into the master, which can easily create merge conflicts.

3. why would we ever use git stash?

- it's helpful when you still need to record all the work that you've been doing but have to switch out to a different branch. It allows you to go back to it and work.

4. what is the primary difference between git reset -soft and git reset -hard?

- git reset -soft will just change the head branch, while git reset -hard changes all of it pretty much. It changes the head, index, and workign directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment