JavaCodeByJava
Monday, 14 February 2022
get parent branch in git
git show-branch -a \
|
grep
'
\*
'
\
|
grep -v
`
git rev-parse --abbrev-ref HEAD
`
\
|
head -n1 \
|
sed
'
s/.*\[\(.*\)\].*/\1/
'
\
|
sed
'
s/[\^~].*//
'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
links for Data Structure
1) 𝐁𝐞𝐜𝐨𝐦𝐞 𝐌𝐚𝐬𝐭𝐞𝐫 𝐢𝐧 𝐋𝐢𝐧𝐤𝐞𝐝 𝐋𝐢𝐬𝐭: https://lnkd.in/gXQux4zj 2) 𝐀𝐥𝐥 𝐭𝐲𝐩𝐞𝐬 𝐨𝐟 𝐓𝐫𝐞𝐞 𝐓𝐫𝐚𝐯𝐞𝐫𝐬𝐚𝐥𝐬...
How to deploy a war file to remote server on tomcat using shell script
Step1: reach to project directory where pom.xml file exist from terminal Step2: clean mavan using below mvn clean Step3: create a war f...
LeetCode 75 problems
Array Two Sum Best Time to Buy and Sell Stock Contains Duplicate Product of Array Except Self Maximum Subarray Maximum Product Subarray Fi...
Inheritance vs Composition in java
They are absolutely different. Inheritance is an "is-a" relationship. Composition is a "has-a" . In the compositio...
No comments:
Post a Comment