×
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 mygitModify files -> Move to staging area -> CommitRemote Repository
Local Repository
Repository
Working directory
Staging
Commit
MessageTo 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 immediatelyMultiple 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 filesHistory
Collaboration
Feature branchesgit bisect startgit add -pIt 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 --graphWhen --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