No video

10. Rename and Restore files in GIT Repository using the mv and the restore command - GIT

  Рет қаралды 8,863

Leela Web Dev

Leela Web Dev

Күн бұрын

In this video, we will see how to rename and remove files in the GIT repository using the mv and the restore command in the GIT Project.
If you like my video, please subscribe to my channel.
My Playlists:
React Complete Course: • 1. Why use React. Adva...
Vue Complete Course: • 1. Introduction to Vue...
Angular NGRX Complete Course: • 1. Introduction to Ang...
Angular Complete Course: • 1. Angular Introductio...
TypeScript Complete Course: • 1. What is TypeScript ...
ES6 Complete Course: • 1. Introduction to Ecm...
Javascript Complete Course: • 1. Javascript Introduc...
GIT Complete Course: • 1. Git, Distributed Ve...
My Courses Playlist Page:
/ leelawebdev
KZfaq Page: / leelawebdev
Twitter Page: / leelanarsimha
Linkedin: / leela-narasimha-reddy-...
GitHub: github.com/lee...
#GIT #leelawebdev
Join this channel to get access to perks:
/ @leelawebdev

Пікірлер: 8
@rohiagarwal777
@rohiagarwal777 Жыл бұрын
Restore command when used on a working area file (which is not staged yet) then it will restore the file as we have on the repository level or staged area (if the staged area and repository have a different version of the file). I meant I changed the file and then staged it and then again changed the file and use the restore in the working area file then it will restore the file to the previously staged changes or the repository version of the file.
@HarinathreddyGundareddy
@HarinathreddyGundareddy 2 ай бұрын
Hi Sir, To revert changes from staging area to working area. You are using git restore --staged (filename). Instead, we can use "git reset" command. Am i right? Orelse, we can do more from git reset command?
@shree4641
@shree4641 11 ай бұрын
I have several files from different directories which got changed while working on web application, so now I want to undo those changes. Therefore what is the command to restore a directory (which is not staged yet)?
@chethanchethan4430
@chethanchethan4430 3 жыл бұрын
I got a question here We modified the file , then we restored the file , command : git restore context .text Which will clear the modified lines . now my requirement is how to go back or command to go back again to the modified section ,where we get lost line back which caused after restore ?
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
When you want to get back the changes that you have restored, simple you can press ctrl+z to undo the changes in editor. You will get your changes back :)
@-ShajanJ
@-ShajanJ 2 жыл бұрын
Hi sir If I use git --hard HEAD^ could I restore my files??
@LeelaWebDev
@LeelaWebDev 2 жыл бұрын
If you commit those files we can get it back. If you dont commit and do hard reset we cant get it back
@vajjaanuja319
@vajjaanuja319 Жыл бұрын
How to change command names in git Example: rename add command to my_add
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 8 МЛН
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 13 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 79 МЛН
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 105 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 144 М.
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 8 МЛН