Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git sync branches

git fetch origin
git reset --hard origin/master
git clean -f -d

#If you want to retain the changes as unstaged files, use --soft instead of --hard.
#WARNING: All your untracked files will be gone when you do git clean -f -d.
Comment

PREVIOUS NEXT
Code Example
Shell :: linux, get host user 
Shell :: run redis in background ubuntu 
Shell :: stop npm server cmd 
Shell :: installing webpack-cli 
Shell :: git find merge conflicts 
Shell :: install office 365 in ubuntu 
Shell :: vuforia git url 
Shell :: linux run background 
Shell :: linux signals 
Shell :: merge feature branch into master 
Shell :: netbeans linux install 
Shell :: better discord how to install plugins 
Shell :: install tmux on fedora32 
Shell :: untrack folder git 
Shell :: undo last commit 
Shell :: yarn start error error listen EADDRINUSE: address already in use :::8081. 
Shell :: uninstall gem 
Shell :: install vlc ubuntu 
Shell :: uvicorn ERROR: [Errno 98] Address already in use 
Shell :: install all dependencies npm 
Shell :: add remote branch git 
Shell :: git get project name 
Shell :: get users linux 
Shell :: my shell bash scripting practice 
Shell :: bash for each line of file 
Shell :: Finding Apache http Process 
Shell :: linux custom command 
Shell :: edit crontab daily 
Shell :: apt lock 
Shell :: git push ci skip 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =