Horje Website
git reset origin Code Example | Shell/Bash
git match remote master
 
  1. git fetch origin
  2. git reset --hard origin/master
git reset to origin/master
 
  1. git reset --hard origin/master
git reset origin
 
  1. git fetch origin
  2. git reset --hard origin/master
  3. Remember this forever
reset branch on local git
 
  1. git fetch origin
  2. git reset --hard origin/master
git reset remote origin
 
  1. $ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
git reset hard to remote
 
  1. git reset --hard origin/master; git commit -m 'reset to remote';git push --force local dev
Published:
February 26, 2021
Author:
admin
Category:
Live Code, Shell/Bash Code
Views:
23

This article was posted in Live Code, Shell/Bash Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2023