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 :: how to download files from linux server 
Shell :: how to remove first colum froim file linux 
Shell :: git how to not commit but keep changes 
Shell :: terminal mkv to mp4 
Shell :: Install nomachine in jetson nano 
Shell :: what is vi in linux 
Shell :: yii3 install 
Shell :: windows battery report health 
Shell :: apt install edge 
Shell :: git get remote branch 
Shell :: failed to open stream: No space left on device linode 
Shell :: powershell command shutdown computer 
Shell :: bash string ends with 
Shell :: sed replace 
Shell :: exit docker container 
Shell :: command to change user ID 
Shell :: aws cli cloudformation list stacks 
Shell :: cli echo to file 
Shell :: git prune local branches 
Shell :: mv folder linux 
Shell :: linux print pdf from console 
Shell :: creating a branch from a commit 
Shell :: pyinstaller add files 
Shell :: npm install tough-cookie 
Shell :: docker network create 
Shell :: archive file 
Shell :: how to undo a bunch of commit sent that was pushed 
Shell :: linux scroll terminal 
Shell :: bash if with function call 
Shell :: linux ubuntu update time 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =