4 lines
		
	
	
		
			186 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			4 lines
		
	
	
		
			186 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| BRANCH_GIT=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
 | |
| git checkout "$BRANCH_GIT" && git fetch upstream && git pull upstream "$BRANCH_GIT"
 |