Given a local / remote branch name, how could I get the hash of the commit that this branch points to?

 

 

The command git rev-parse is your friend, e.g.:

$ git rev-parse development
17f2303133734f4b9a9aacfe52209e04ec11aff4

 

... or for a remote-tracking branch:

$ git rev-parse origin/master
da1ec1472c108f52d4256049fe1f674af69e785d

 

This command is generally very useful, since it can parse any of the ways of specifying branch names in git, such as:

git rev-parse master~3
git rev-parse HEAD@{2.days.ago}

 

+

current branch hash point

~1

~2

~3

 

If we have many of entry, simply point out ~(Want to do before entry point)

In this case, Project gradle version would not matched correctly for Java project version.

 

Check Below Process

1.  File - Settings - Build, Execution, Deployment 

Change Build and run using Gradle to intelliJ IDEA

 

But it is not important things that Gradle will change java version correctly for project settings.

 

 

If project used to take in version like 11, change Gradle JVM version to 11.

 

2. File - Project Settings

Change project SDK version correctly for java project. In this case, need to change corretto-19 to 11. 

 

3. Change Active profile 

 

Go Edit  - change active profile what you want to change

Check current branch

35mwl@remoted MINGW64 ~/OtpServer (master)
$ git branch
* master
# current branch was checked with * mark

 

check out current branch to child branch

$ git checkout "child_branch"

 

After checking out, merge master into child_branch to use IntelliJ or command like "git merge master"

"git merge master" means to merge "master" into "child_branch" or others.

With conflicted between master and child, merge will be failed. In this case, recommend to use IDE tools for Debug

 

Quote

https://heestory217.tistory.com/38

 

Merge branch 'master' into 개별브랜치

마스터 브랜치의 내용을 개별 브랜치로 Merge하는 방법 내 브랜치에 마스터 브랜치 내용을 업데이트 해봅시다 👩‍💻 1. 터미널 열기 .git 폴더가 있는 디렉토리에서 git bash 열기 디렉토리 확인, g

heestory217.tistory.com

 

Project could request certificate or validation, for Our project need to be protect from unauthroized user. 

So some of case need for SSL verification.

 

Especailly, protected or private project could do definitely.

 

Information Gathering

35mwl@remoted MINGW64 ~
$ git clone https://remoted@.......
Cloning into 'OtpServer'...
fatal: unable to access 'https://....': SSL certificate problem: unable to get local issuer certificate

 

Setting up

$ git config --global http.sslVerify false

 

Do not confuse other options like

$ git config --global http.security false

 

Then, Cloning start

$ git clone ........
\Cloning into 'OtpServer'...
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
remote: Counting objects: 5889, done
remote: Finding sources: 100% (5889/5889)
remote: Getting sizes: 100% (3431/3431)
remote: Compressing objects: 100% (794/794)
remote: Total 5889 (delta 2082), reused 5883 (delta 2079)
Receiving objects: 100% (5889/5889), 243.03 MiB | 6.96 MiB/s, done.
Resolving deltas: 100% (2082/2082), done.

+ Recent posts