DVCS vs CVS — further expanded in Git Theory and Practical

Decentralized Version Control System

Centralized Versioning control system

Instructions

  • installing git
  • signup to github.com

Practice Performed

  • git add
  • git commit
  • git push
  • git pull

Extra stuff I learned

Going back to previous commit to and rebasing

Seeing git logs git log

Start interactive rebase git rebase -i <commit hash>

In the editor, choose to edit the commit identified in step 3 by changing pick to edit on the first line of the text.

edit 8728dbe67 my second commit message
pick 03d69e5d3 my third commit message
pick 8053f7b27 my fourth commit message

make changes and git add .

  • git commit --amend
  • git rebase --continue
  • git push

removing some files from git index

git rm --cached -r folder or files

Learned to create .gitignore file

.trash/
.obsidian/
private

References

  1. Removing secret introduced by earler commit
  2. How to ignore files in git

Extra Stuff to read about git

  1. https://jvns.ca/blog/2024/01/26/inside-git/
  2. https://githowto.com/git_internals_git_directory
  3. Some talks about git in reddit 1
  4. https://git-scm.com/book/en/v2