Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git chnage to commit id

If you reset --hard, it will make your local code and local history be just like it was at that commit. But if you wanted to push this to someone else who has the new history, it would fail:

git reset --hard c14809fa
And if you reset --soft, it will move your HEAD to where they were , but leave your local files etc. the same:

git reset --soft c14809fa
Comment

PREVIOUS NEXT
Code Example
Shell :: install typeorm node 
Shell :: ng command not found 
Shell :: download google drive file ubuntu 
Shell :: symfony install website skeleton 
Shell :: git push specify ssh key 
Shell :: timestamp zsh terminal 
Shell :: check lines of code in a folder 
Shell :: linux show ssh users 
Shell :: heroku update remote url 
Shell :: how to install packages from github in flutter 
Shell :: allow ping using cmd 
Shell :: push project to new branch git 
Shell :: view live log linux 
Shell :: split string in shell 
Shell :: bash string interpolation 
Shell :: git SSL certificate problem: self signed certificate 
Shell :: split command in splunk 
Shell :: composer install ubuntu 20.04 
Shell :: check changes after git pull 
Shell :: run bat file with arguments 
Shell :: ubuntu install nvm 
Shell :: what are the ubuntu packages required for laravel to be installed 
Shell :: ansible lineinfile 
Shell :: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? 
Shell :: push code to github 
Shell :: install kasm ubuntu 
Shell :: git how to remove git 
Shell :: error: unknown command "neat" for "kubectl" 
Shell :: linux find files ending with 
Shell :: how to download a text file with curl 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =