Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TDC2018SP | Trilha NoSQL - Git muito alem do controle de versao, uma alternativa para armazenamento de dados

23 views

Published on

TDC2018SP | Trilha NoSQL - Git muito alem do controle de versao, uma alternativa para armazenamento de dados

Published in: Education
  • Be the first to comment

  • Be the first to like this

TDC2018SP | Trilha NoSQL - Git muito alem do controle de versao, uma alternativa para armazenamento de dados

  1. 1. Git muito além do controle de versão Alex Porcelli Business Automation Architect, Red Hat uma alternativa para armazenamento de dados twitter.com/porcelli github.com/porcelli
  2. 2. Git is the dominant choice for version control for developers today, with almost 90% of developers checking in their code via Git https://insights.stackoverflow.com/survey/2018
  3. 3. 101
  4. 4. Bibiliotecas
  5. 5. Transações Réplicas Performance
  6. 6. Como Drools & jBPM tooling utiliza git como nosql?
  7. 7. //create new repository FileSystem fs = FileSystems.newFileSystem(URI.create("git://repo); //commits Files.write(fs.getPath("/pom.xml"), Files.readAllBytes(new File("input.xml").toPath())); Files.write(fs.getPath("/dummyA/pom.xml"), Files.readAllBytes(new File("inputA.xml").toPath())); //list branches fs.getRootDirectories(); # nio2 provider
  8. 8. Transações Réplicas Performance Cluster Alta Disponibilidade
  9. 9. # git init --bare .
  10. 10. Git is a content- addressable filesystem.
  11. 11. # find objects # find objects -type f
  12. 12. # echo ‘{content}' | git hash-object -w --stdin
  13. 13. # git cat-file –p {hash}
  14. 14. # git cat-file –t {hash}
  15. 15. # git update-index -- add --cacheinfo 100644 {hash} {path}
  16. 16. # git ls-files --stage
  17. 17. # git write-tree
  18. 18. tree blob blob tree blob file1.txt file2.txt file3.txt dir
  19. 19. # echo ‘{message}' | git commit-tree {hash}
  20. 20. tree blob blob tree blob file1.txt file2.txt file3.txt dir commit
  21. 21. # echo ‘{message}' | git commit-tree {hash} –p {previous_commit_hash}
  22. 22. # git cat-file –p {hash}
  23. 23. # git log
  24. 24. fatal: your current branch 'master' does not have any commits yet
  25. 25. # echo '{hash}' > refs/heads/master # git update-ref refs/heads/master {commit_hash}
  26. 26. # git log
  27. 27. # git update-ref refs/heads/{branch_name} {commit_hash}
  28. 28. # cat HEAD # git symbolic-ref HEAD
  29. 29. # git symbolic-ref HEAD refs/heads/test
  30. 30. Obrigado Alex Porcelli Business Automation Architect, Red Hat twitter.com/porcelli github.com/porcelli

×