Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

github get parent branch

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 :: install fish ubuntu 
Shell :: git remove folder from repository 
Shell :: pull down remote branch git 
Shell :: is lubuntu better than ubuntu 
Shell :: check and verify git version 
Shell :: apt install slack 
Shell :: which zsh theme im using 
Shell :: copy secret from one namespace to another 
Shell :: bitbucket change commit message 
Shell :: linux scroll in flutter 
Shell :: sed replace all occurances? 
Shell :: change permissions on all sub-directories 
Shell :: download google drive file ubuntu 
Shell :: how to install opencv in anaconda, jupyter notebook 
Shell :: linux login to github via git 
Shell :: husky install 
Shell :: allow ping using cmd 
Shell :: git ignore still sending files 
Shell :: linux run background 
Shell :: vendor/autoload.php download 
Shell :: kubernetes /bin/bash 
Shell :: gcc install mac 
Shell :: git deleted file error 
Shell :: and in bash 
Shell :: Go install /linux 
Shell :: how to set environment variable in linux permanently 
Shell :: remove folder from repo but keep locally 
Shell :: merge master with main 
Shell :: ls with file size 
Shell :: github untrack files 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =