Skip to content

Instantly share code, notes, and snippets.

@julianalucena
Created January 13, 2012 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save julianalucena/1604350 to your computer and use it in GitHub Desktop.
Save julianalucena/1604350 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, 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 on cool branch on master branch doing a rebase
  • Clone this repository in another computer
@guiocavalcanti
Copy link

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