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