Learn how to move or to rename files in the repository.
- [Narrator] Let's learn how to track moved … or renamed files in Git. … There are two techniques for moving and renaming files. … Very similar to what we just saw when we were talking … about deleting files. … Let's look at both of these techniques. … For the first, we're going to make changes … to the file name directly in the operating system, … not through the command line. … So I'm going to change "first_file" … and I'm just going to change that file name … to be "primary_file.txt." … So now it has a new file name. … If I come over here and I go into my command line … and I'm inside my Git project. … If I use "git + status" it'll come up … and it'll tell me that there are now two changes … that I should know about. … The first is that it says the file … "first_file.txt" has been deleted … and there's a new untracked file called "primary_file.txt." … It's listing them as two separate events, … it's not linking them together as being a rename … it's saying "I see that one file was deleted, …
- Exploring the history of version control
- Installing Git on Mac, Windows, and Linux
- Initializing a repository
- Writing useful commit messages
- The Git three-tree architecture
- Tracking when files are added, edited, deleted, or moved
- Viewing change sets and comparing versions
- Undoing changes and retrieving previous versions
- Ignoring changes to select files
Skill Level Beginner
1. What Is Git?
2. Install Git
3. Getting Started
4. Git Concepts and Architecture
5. Make Changes to Files
6. Use Git with a Real Project
7. Undo Changes
8. Ignore Files
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.