This presentation introduces the basics of git to developers using the github platform.
After this presentation, users should be able to start using git effectively to manage and collaborate in projects
so many files. You can’t even remember what exact changes even if you can remember all the files If you remember all, it will take you a lot of time to CTRL + Z all the mess
Linux Torvalds in 2005 ➔ Git is an open-source Distributed Version Control System ➔ A command line utility Let us breakdown this seemingly complex term …. Distributed Version Control System
server, it is kept on multiple computers. A loss on one computer can easily be recovered by getting the same code from another computer that is storing a copy of it. You get the full history of the project as well.
a new version of the project is created, this helps keep track of the state of the project at any given point in time. This keeps a history of what happened throughout the life history of the project.
in parallel ➔ Allow developers to quickly revert to a working version of a project ➔ Different features might be built simultaneously, this introduces the concept of branching
a tree of commits and see how operations like branching, merging, pushing, and pulling manipulate that tree, then understanding other Git commands should not be difficult.
3 things: • A set of files, reflecting the state of a project at a given point in time. • A commit message, describing what the commit was about • An SHA1 name, a 40-character string that uniquely identifies the commit object. The name is composed of a hash of relevant aspects of the commit, so identical commits will always have the same name. commit 26a02bd03ca716949f9d819a89e35c4a9b603aff
do this once $ git config --global user.name "John Doe" $ git config --global user.email [email protected] You can check your settings by running: $ git config --list
change to the file 2. Introduce the change by adding it to the staging area : $ git add index.txt 3. Commit the change : $ git commit -m “made a file change” 4. Push the change : $ git pull origin master