Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git reset a single file to previous commit

git checkout c5f567 -- file1/to/restore file2/to/restore
Comment

git revert commit for single file

git checkout <commit_hash> path/to/file
Comment

PREVIOUS NEXT
Code Example
Shell :: how to cat only the first ten lines of a file linux 
Shell :: poetry add library 
Shell :: run docker as user not root 
Shell :: clone repo with large size using git bash 
Shell :: linux switch user 
Shell :: Command to create a new Vue app 
Shell :: pyenv install ubuntu 
Shell :: NGINX systemd service file 
Shell :: raspberry pi ubuntu server raspi-config 
Shell :: javascript implements 
Shell :: grep word after match 
Shell :: remove dock from ubuntu 
Shell :: view certificate openssl 
Shell :: linux find files older than 15 minutes 
Shell :: shell script tutorial 
Shell :: how to resolve conflict in git 
Shell :: powershell script example 
Shell :: linux ip route add 
Shell :: how to deploy heroku app 
Shell :: docker copy folder to container 
Shell :: connect terminal to server 
Shell :: sed replace with newline 
Shell :: linux extract txz 
Shell :: poetry delete environment 
Shell :: delete remote git tags matching pattern 
Shell :: run sh file 
Shell :: mac m1 linux install 
Shell :: Building without Cython. Error: Please make sure the libxml2 and libxslt development packages are installed. 
Shell :: awk bash 
Shell :: store select output hive 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =