Horje
can we store the name of the current branch in a variable in bash Code Example
can we store the name of the current branch in a variable in bash
branch_name=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')




Shell

Related
how to check if automatic system updates are working on fedora Code Example how to check if automatic system updates are working on fedora Code Example
bash multipart tar Code Example bash multipart tar Code Example
pycocotools install error Code Example pycocotools install error Code Example
run existing image docker Code Example run existing image docker Code Example
how to remove first colum froim file linux Code Example how to remove first colum froim file linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11