Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Reset and sync local repository with remote branch

# You may also add as an alias in your .gitconfig file:
alias resetorigin = git fetch origin && git reset --hard origin/master && git clean -f -d
alias resetupstream = git fetch upstream && git reset --hard upstream/master && git clean -f -d

# then type
git resetupstream
# or
git resetorigin
Comment

PREVIOUS NEXT
Code Example
Shell :: sed all except last 
Shell :: npm lavastore 
Shell :: git roll back to a point 
Shell :: The following packages have unmet dependencies: phpmyadmin : Depends: php-twig ( 2.9) but 2.6.2-2 is to be installed Recommends: php-bz2 Recommends: php-gd Recommends: php-tcpdf but it is not going to be installed 
Shell :: remove admin group ubuntu 
Shell :: nvm removes globally installed packages 
Shell :: To confirm each substitution, use the c flag: 
Shell :: Bash command to find the highest PID in your system 
Shell :: cara stop running docker 
Shell :: sshkeygen validate keys 
Shell :: imstall prettier 
Shell :: Edit remote files within Vim session 
Shell :: powershell write to fgile 
Shell :: git pelak 
Shell :: run rpush 
Shell :: wrong domain calling on same hosting ubuntu server 
Shell :: How to install u-torrent from a tar.gz on Kali Linux 
Shell :: make folder public digital ocean bucket 
Shell :: dump date 
Shell :: fix kali linux asking to restart services 
Shell :: install netdiscover raspbian 
Shell :: how to create malware for android in kali 
Shell :: chow install cal inlunix 
Shell :: grap all .mp3 from url 
Shell :: makefile link libraries 
Shell :: hashcat-6.1.1.7z by kali linux 
Shell :: Authenticate with a GitHub host. 
Shell :: close all open windows macos 
Shell :: Auto-open DevTools on every new tab For bash on Linux 
Shell :: git stash pop specific 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =