Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

reset one branch onto another

# Make sure your working tree is in a clean state
git status

# Check out the branch you want to change, e.g. some-branch
git checkout some-branch

# Reset that branch to some other branch/commit, e.g. target-branch
git reset --hard target-branch
Comment

reset branch to other branch

git reset --hard master # master can be any other branch that is already contained in current branch
Comment

PREVIOUS NEXT
Code Example
Shell :: tar extract 
Shell :: twig install 
Shell :: virtualbox mac install brew 
Shell :: arch add fonts 
Shell :: C:UsersMY PCAppDataRoaming pm/node_modules/node/bin/node: line 1: This: command not found 
Shell :: create gitignore 
Shell :: truncate docker logs 
Shell :: linux version 
Shell :: exclude/prevent file from commit using git ignore 
Shell :: red bash linux 
Shell :: wifi adapter not found ubuntu 20.04 
Shell :: git override local file with remote 
Shell :: could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432? 
Shell :: docker sleep infinity 
Shell :: remove .svn recursively linux 
Shell :: htaccess route to index.php 
Shell :: bash write file 
Shell :: Error: .ini file does not include supervisorctl section 
Shell :: remove all files inside directory linux 
Shell :: github setup 
Shell :: linux local bin add to path 
Shell :: ffmpeg change resolution 
Shell :: grep filetype 
Shell :: ubuntu get external ip 
Shell :: generate 6 digit random number ruby 
Shell :: how to revert back to previous commit in git 
Shell :: xcopy folder to another folder 
Shell :: how to check if a python script is running 
Shell :: How to see my aliases? 
Shell :: install xampp on Linux 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =