Difference between distrobuted version control and Centralized Version Control Systems.
As the name suggests.
main benefits with the distributed
the ability for all participants to work offline and independently from each other
that common operations are much faster because there is no need to communicate over the network
that data is backed up with each repository clone
Some drawbacks:
there is a need to regularly synchronize changes between repositories
a lot of storage space might be required since every participant has a complete copy of all files and their history
there is no locking mechanism which makes managing non-mergable files (like binary files or images) harder
what year was git introduced? and what system did it replace? bitkeeper?
2005, by linus torvald
VCS
Version Control System
What is Continuous Delivery?
Continuous Delivery is the ability to get changes of all types—including new features, configuration changes, bug fixes and experiments—into production
Why continuous delivery?
it has shown to be better by peer reviewed papers.
Another common practice is called “Gitops” , what is it?
This is a way to deploy applications automatically based on changes made to files in a Git repository.
References (refs), how are they calculated
sha1 checksum is the identifier
Index or staging area, what is it?
when using add you add things to the staging area that is later commited with the commit.
Tracked and untracked files, how do they work
They are per standard untracked but you could track them if you want.
what does git diff compare?
working vs staging
git log format and flags
shows the last commits in order with the last one at the top. This is marked as the head and will be pushed if you push. -n to limit how many there are displayed
You can also supply a formatting string:
$ git log –pretty=format:”%h - %s%nby %an %ar%n”
git show, what does it do?
shows the last commit changes.
git diff with commits, possible? how?
git diff 659ccda 6202970
git log –graph –all –oneline
vad får jag fram då?
how remotes work
these are other repositories with which changes can be synchronized.