move bin to .local/bin
This commit is contained in:
		
							
								
								
									
										10
									
								
								dot_local/bin/executable_xxbranch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								dot_local/bin/executable_xxbranch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
if [ $# -eq 1 ]; then
 | 
			
		||||
	branch=$1
 | 
			
		||||
	git fetch upstream master
 | 
			
		||||
	git checkout upstream/master
 | 
			
		||||
	git checkout -b "$branch"
 | 
			
		||||
else
 | 
			
		||||
	echo "Please specify new branch."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user