Skip to content

Instantly share code, notes, and snippets.

@Garrett-Iannuzzi
Last active February 6, 2020 18:58
Show Gist options
  • Save Garrett-Iannuzzi/827657d8a168bd8a6dfdbf341433a40d to your computer and use it in GitHub Desktop.
Save Garrett-Iannuzzi/827657d8a168bd8a6dfdbf341433a40d to your computer and use it in GitHub Desktop.
git 2.0
  • The command I will use on a daily basis form here on out is git rebase because I would like to be familiar with this workflow incase my future employer uses it.
  • Rebasing will re order your commit log in order to keep it more percise. The workflow is a lot similar but once you have a new feature you are ready to push you git pull --rebase origin master
  • We could use git stash when we want ignore the changes we made and checkout of that branch.
  • Git reset is about updating your branch, moving the tip in order to add or remove commits from the branch. This operation changes the commit history. --soft does not touch the index file or the working tree at all. --hard Resets the index and working tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment