Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git sync local branch with remote

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

How do I sync local and remote branches?

maybe you're lokking for
git pull origin master
or
git pull origin main
or 
git pull origin <branchname>
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install curl on macos 
Shell :: angular bootstrap 
Shell :: database is being accessed by other users 
Shell :: ssh rsa pub to pem 
Shell :: linux run command in background and redirect output to file 
Shell :: create a junction in windows 
Shell :: how to install winehq in ubuntu?? 
Shell :: powershell set variable 
Shell :: install kivy 
Shell :: find tomcat location in mac 
Shell :: git-hub push code 
Shell :: change branch name 
Shell :: stremio: Depends: libfdk-aac1 
Shell :: uninstall nvidia driver ubuntu 
Shell :: bash how to delete ^M at the end of every line 
Shell :: generating javadoc 
Shell :: record audio with ffmpeg 
Shell :: scale deployment 
Shell :: install tomcat on mac brew 
Shell :: uninstall dependency npm 
Shell :: linux find all files name containing string 
Shell :: ntfsfix ubantu 
Shell :: gunicorn windows 
Shell :: git clone latest commit 
Shell :: npm i vs npm ci 
Shell :: bash data types 
Shell :: ubuntu install vagrant 
Shell :: ubuntu find folder through terminal 
Shell :: Octave Install Packages Commands 
Shell :: ubuntu server lamp installation 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =