Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

find the parent branch of a git branch

git log --first-parent
Comment

find out a branch a parent branch git

git show-branch -a | grep '*' | grep -v `git rev-parse --abbrev-ref HEAD` | head -n1 | sed 's/.*[(.*)].*/1/' | sed 's/[^~].*//'
Comment

PREVIOUS NEXT
Code Example
Shell :: send giphy on slack 
Shell :: install wkhtmltopdf linux command 
Shell :: set zsh as default linux 
Shell :: bash script language check if item in array 
Shell :: kill a process at a port 
Shell :: check if s3 bucket exists 
Shell :: git remove cached 
Shell :: linux get full path 
Shell :: net start docker service 
Shell :: list all node versions mac 
Shell :: grep show lines above and below 
Shell :: gitbash shortcut to clear the terminal 
Shell :: install pandas 
Shell :: add user to sudoer 
Shell :: how to run .run file in linux 
Shell :: nvm use globally 
Shell :: get size of file linux 
Shell :: how to get only a list of size of files bash 
Shell :: git branch delete all local branches 
Shell :: update to 21.04 from 20.04 
Shell :: npm dev server 
Shell :: bash how to remove the first n lines of a file 
Shell :: change file name in terminal 
Shell :: ts-node not found 
Shell :: remove spaces from file names bash 
Shell :: how to delete particular type file recursively in linux 
Shell :: ubuntu command to check all network interfaces with IPv4 
Shell :: shell set environment variable 
Shell :: enospc no space left on device 
Shell :: how to move a file in terminal 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =