4. DELETING A RENAMING FILES Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

TWO WAYS TO DELETE A FILE IN GIT
There’s two ways to delete files managed by Git
•Now, the first is the obvious, just deleting the file from your file system.
•The other way to delete a file is by using the Git RM command and then type it in the file that you want to delete.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

¿HOW CAN YOU RENAME THINGS?

A

You can rename files in a couple of different ways, but the way Git handles this is pretty interesting. So you can simply rename things in the operating system.
When you rename something, what you’re doing is, creating a new file and then deleting the old one.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

GIT MV COMMAND

A

git-mv - Move or rename a file, a directory, or a symlink.

We can give this command the name of the file that we want to rename and the new name after that.

And so that’s why it’s telling you that there’s nothing to commit. In other words, there haven’t really been any changes to any files. Now you might be wondering why mv, instead of something like rn or rename or something like that, it doesn’t sound anything like rename In Linux mv is a command that moves files. And it’s what you use to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ABOUT GIT STATUS COMMAND

A

It’s a good idea to use, git status as often as possible when you’re learning to see what’s going on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly