Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git force sync with remote

#fetch last commit from remote
git fetch origin 
#pipe commands
&&
#force reset
git reset --hard origin/master
#clean repo from untraced file "NOT Recommended"
git clean -f -d
Comment

PREVIOUS NEXT
Code Example
Shell :: generate patch file git 
Shell :: how to find a file in linux terminal 
Shell :: search by commit message 
Shell :: ip info on ubuntu 
Shell :: how to find ip adress of a web side kali linux 
Shell :: restart wsl 
Shell :: Kali free ports in use 
Shell :: microsoft todo for linux 
Shell :: how to kill intellij process in linux 
Shell :: conda install notebook 
Shell :: Install libqt4 ib ubuntu 
Shell :: bat turn echo off 
Shell :: linux bash command to clean up log files 
Shell :: docker compose keep container running 
Shell :: 7zip cmd 
Shell :: linux && 
Shell :: bash read file into variable 
Shell :: find out a branch a parent branch git 
Shell :: sudo snap linux store 
Shell :: how to filter 12 character words from file bash 
Shell :: how to install mongodb in ubuntu 20.04 lts fossa 
Shell :: git tag delete 
Shell :: new commit 
Shell :: move file from one directory to another sftp 
Shell :: clone commit of a branch 
Shell :: set permanant environemt variable 
Shell :: wsl windows directory 
Shell :: git global name & email 
Shell :: copy contents of folder to another folder in terminal 
Shell :: check lines of code in a folder 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =