Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git reset origin

git fetch origin
git reset --hard origin/master
Remember this forever
Comment

git reset remote origin

$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Comment

git reset remote

# local
git reset <commit-hash>
# or
git reset --hard <commit-hash>

# remote
git push -f origin master
Comment

PREVIOUS NEXT
Code Example
Shell :: restart a pod kubernetes 
Shell :: how to exit git log 
Shell :: set root password kali 
Shell :: windows proxy for local system 
Shell :: remove environment variable linux 
Shell :: linux print screen 
Shell :: Error: The following directories are not writable by your user: /usr/local/lib/pkgconfig 
Shell :: git pull with username and password 
Shell :: less command 
Shell :: ffmpeg convert mkv to mp4 
Shell :: installing .deb on kali 
Shell :: @react-native-community/netinfo 
Shell :: replace all substring in a given string 
Shell :: linux command disk speed test 
Shell :: postgres install mac 
Shell :: zsh to bash mac 
Shell :: unstage staged files git 
Shell :: access wine directory mac os 
Shell :: choco upgrade 
Shell :: git reset branch 
Shell :: reduce file size of mp4 using ffmpeg 
Shell :: delete github credentials in windows 
Shell :: show hidden files linux 
Shell :: install specific node version linux 
Shell :: git move changes to new branch 
Shell :: install spotify on linux 
Shell :: change default shell fedora 
Shell :: gzip version check 
Shell :: bash print odd or even lines 
Shell :: git username password config 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =