Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git force checkout

git checkout -f <Branch Name>
Comment

what is force checkout in git

Force a Checkout
Pass the -f or --force optionwith the git checkout command
to force Git to switch branches, 
even if you have un-staged changes 
(in other words, the index of the working tree differs from HEAD).

Basically, it can be used to throw away local changes
Comment

PREVIOUS NEXT
Code Example
Shell :: bash single line if-else condition 
Shell :: docker compose no space left on device 
Shell :: install python module ImageTk 
Shell :: brew status service 
Shell :: linux linebreaks script bash 
Shell :: redis delete keys that match pattern 
Shell :: install taggit 
Shell :: find process on linux 
Shell :: nuxt install 
Shell :: linux kill process by pid 
Shell :: remove space at end of each line file 
Shell :: mac check command line tools version 
Shell :: duplicate line intellij mac 
Shell :: remove local images 
Shell :: no module named cv2 mac os 
Shell :: task manager linux 
Shell :: how to unstage changes in git 
Shell :: Use cp command to copy multiple files from a directory 
Shell :: ubuntu sources.list path 
Shell :: ngx-material-file-input 
Shell :: add all changes and commit in git 
Shell :: git untrack 
Shell :: git push all tags 
Shell :: Package "ngx-material-file-input" 
Shell :: git diff meld 
Shell :: get file size in bash 
Shell :: install rancher 
Shell :: generate keystore on mac 
Shell :: add current directory to path 
Shell :: jupyter python downkload 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =