10 lines
		
	
	
		
			208 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			208 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
BRANCH=$1
 | 
						|
git checkout main
 | 
						|
git checkout master
 | 
						|
git checkout -b "$BRANCH"
 | 
						|
git checkout "$BRANCH"
 | 
						|
git branch --set-upstream-to=origin/"$BRANCH" "$BRANCH"
 | 
						|
git pull
 | 
						|
git reset --hard origin/"$BRANCH"
 |