Up and Running with Git Transcripts
Chapter: The '6' core git operations
Lecture: Clone

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Conceptually our first git command clone works like this.
0:04 We have somewhere some kind of hosting server and this has code in a repository we
0:10 went to work with already. Maybe this is something we just went to github
0:14 and said new repository and we want to get it or it could be we've joined
0:18 a team or an open source project that's been going on for a long time.
0:22 However, we got there there's some sort of server hosting,
0:25 a github repository and we want to work with it.
0:27 Remember this is not centralized version control.
0:30 We can't directly commit to and from that remote server instead we clone it.
0:36 So on our machine we want to get this over right now we don't have it
0:39 We use the clone command which you can think of as a copy and it
0:43 copies not just the files but all of the versions,
0:47 all the history, all the changes and information about what's happened to those files locally
0:51 So that then we work with the files on our machine as we make changes
0:56 Remember, clone is a disconnected thing.
1:01 It happens once and then until we do some other operation,
1:05 there's no connection back to the hosting server.