Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 659 Bytes

Walkthrough.md

File metadata and controls

14 lines (14 loc) · 659 Bytes

Tutorial

  1. git init -> call tree .cpp-git
  2. create 2 new files and a folder with one file -> call cpg add .
  3. cpg status, commit, and cpg status again
  4. then modify a file -> call cpg status to see unstaged
  5. add it then call cpg status to see modified
  6. commit, then call cpg log
  7. delete a file, call cpg add . + cpg status
  8. cpg reset --hard to get file back
  9. create new branch and cpg checkout new
  10. add a commit to new_branch
  11. call cpg branch
  12. modify a.txt, checkout master with stuff inside index
  13. call cpg reset --hard + cpg checkout master -> see that the file changed in new_branch has reverted