Skip to content

Instantly share code, notes, and snippets.

@guiocavalcanti
Forked from julianalucena/gist:1604350
Created January 16, 2012 17:13
Show Gist options
  • Save guiocavalcanti/1621846 to your computer and use it in GitHub Desktop.
Save guiocavalcanti/1621846 to your computer and use it in GitHub Desktop.
Kind of dojo about Git

Kind of dojo about Git

  • Create a repository and push it to Github
  • Change some files and commit it
  • Create two files and edit an existent file, add all to the index and make a commit only with one of the new files
  • Create another branch (cool) and change files
  • (Stash here we go!)
  • Go to master branch and push the modifications
  • Go back to cool branch, unstash, commit and push
  • Put the commits on cool branch on master branch doing a merge
  • Dispose the last action and let master branch without cool branch commits
  • Put the commits from cool branch on master branch doing a rebase
  • Clone this repository in another computer
  • Make a pull request

Extra

  • Go back to cool branch, add some files, commit and reorder them using interactive rebase
  • Open an issue and close it through the commit message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment