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

parent branch

git log --first-parent
Comment

PREVIOUS NEXT
Code Example
Shell :: how to go back to last git commit 
Shell :: isntall skimage 
Shell :: aws cli create ecr repository if not exists 
Shell :: linux script to clean up log files in /var/log 
Shell :: powershell get OS 
Shell :: strapi run command 
Shell :: grafana docker password 
Shell :: enable apache2 site 
Shell :: winget powertoys 
Shell :: ubuntu 20.04 install repo 
Shell :: download kubectl for windows 
Shell :: github push local branch to remote 
Shell :: install psql mac 
Shell :: install polar linux 
Shell :: post webhook bash 
Shell :: docker compose stop and start only specific 
Shell :: docker image tar import 
Shell :: flush the port 3001 
Shell :: how to avoid nginx not found 404 error ubuntu react app 
Shell :: windows open browser from command line 
Shell :: get current working directory ubuntu 
Shell :: github desktop arch linux 
Shell :: how to install cmake ninja 
Shell :: install packages with pip jupyter 
Shell :: bash get field from line 
Shell :: ffmpeg reduce video size 
Shell :: cordova-ios latest version 
Shell :: pen() "/var/lib/nginx/tmp/client_body/0000000001" failed (13: Permission denied), client: 
Shell :: ion2 calendar 
Shell :: powershell allow execution 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =