Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

revert vs reset vs restore

git-revert is about making a new commit that reverts the changes made by other commits.

git-restore is about restoring files in the working tree from either the index or another commit.
		the command does not update your branch.
The command can also be used to restore files in the index from another commit.

git-reset is about updating your branch, moving the tip in order to add or remove commits from the branch. This operation changes the commit history.
			can also be used to restore the index, overlapping with git restore.
Comment

PREVIOUS NEXT
Code Example
Shell :: activate conda environment in bash script 
Shell :: bash exit code status last command 
Shell :: svelte install 
Shell :: gpg to decrypt a file 
Shell :: rem command in batch file 
Shell :: linux local bin add to path 
Shell :: vercel 
Shell :: update every python library 
Shell :: pulling and running docker image 
Shell :: choco install watchman 
Shell :: export commit history github 
Shell :: bash count number of arguments 
Shell :: zip files in folder linux 
Shell :: wget recursive 
Shell :: iwconfig command not found 
Shell :: how to install vs code on fedora 
Shell :: powershell connect to serial port 
Shell :: less command 
Shell :: bash cut first column 
Shell :: github how to clone private repo 
Shell :: where to store ssl certificate on linux 
Shell :: kubernetes get inside pod 
Shell :: vim move line down 
Shell :: mongodb server stop command in kali linux 
Shell :: tar extract to folder 
Shell :: Bash file permission 
Shell :: you have new mail terminal mac 
Shell :: deploy netlify angular 
Shell :: renaming a docker container 
Shell :: docker make container auto start 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =