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 :: bash firebase command not found 
Shell :: powershell if string contains 
Shell :: install php7.4 curl 
Shell :: bash get current date 
Shell :: convert back to sh from zsh 
Shell :: bash for loop find 
Shell :: code UNABLE_TO_GET_ISSUER_CERT_LOCALLY 
Shell :: check just name of running container 
Shell :: bash if then else one line 
Shell :: install youtube-dl in ubuntu 
Shell :: git save username and password 
Shell :: shell for file in directory 
Shell :: kill x-server 
Shell :: last 2 git log entries 
Shell :: install vlc on ubuntu 
Shell :: powershell for loop 
Shell :: install edge on ubuntu 
Shell :: pm2 adonis 5 
Shell :: macbook ubuntu webcam 
Shell :: git get remote address 
Shell :: tesseract installation in Arch linux 
Shell :: command to find Server’s Public IP Address using curl 
Shell :: remove env file from git 
Shell :: failed to start daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid 
Shell :: cshell find file by name 
Shell :: ubuntu isolate workspaces 
Shell :: zip full folder ubuntu 
Shell :: error: RPC failed; curl 28 OpenSSL SSL_read: Connection was reset, errno 10054 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly Everything up-to-date 
Shell :: No CMAKE_CXX_COMPILER could be found. 
Shell :: How to check the installed version of React-Native 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =