×
Clear all filters including search bar
Valeri Tandilashvili's Git Notes
git init
Creates a directory mygit
inside the current folder and an empty git repository into the newly created foldergit init mygit
Modify files
-> Move to staging area
-> Commit
Remote Repository
Local Repository
Repository
Working directory
Staging
Commit
Message
To see what changes each feature takes separately
Not to commit feature changes on the main branch until it's finished
Not to Interfere while other developer is trying to fix an issue on main branch
If I work on two features at the same time, I should be able to commit the finished feature changes immediately
Multiple developers can work together on the same project
No need to wait for someone else to make their changes
Git can merge everyone's changes together
Everyone can have the most updated copy of the project's files
History
Collaboration
Feature branches
git bisect start
git add -p
It will ask us interactively whether we want to add each individual changes to the staging area or not
y
means yes, n
means nogit log --oneline --all --graph
When --graph is not used, all history branches are flattened which can make it hard to see that the two consecutive commits do not belong to a linear branch