Download presentation
Presentation is loading. Please wait.
Published byCurtis Butler Modified over 9 years ago
1
Git Basics
2
Git stores data as snapshots of the project over time When commit Save all the files If files have not changed, point to the previous identical file To be more efficient Create a ID to reference the commit ID=SHA1
3
Other SCM systems Other systems tend to store data as changes to a base version of each file.
4
Initializing a Repository in an Existing Directory Create a folder Inside the folder $ git init
5
.git Folder Init command creates.git folder Local repository Invisible folder To display invisible folders $ ls -la
6
Inside.git folder $ ls –l.git
7
Your Identity Keep tracking of who worked on the code Name Email Example $ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com johndoe@example.com Identify is save in.gitconfig –Under the home foler
8
Cat.gitconfig Show the configuration information
11
Adding and Committing
12
Staging Area Before and after git add
13
Recover files from.git You can recover them from.git (local repository) After deleting files from working directory
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.