Skip to content

Tag: git

Cannot pull origin dev due to unrelated conflict in Git

I pull a branch (let’s say issue-100) from origin for review and after review I switched to local dev branch without modifying this issue-100 branch. There are some conflicts with this branch, but I did not touch it and just create a new branch after pulling dev branch from origin. But, interestingly, Git gives “Automatic merge failed; fix conflicts and

EnableConfigServer cannot be resolved to a type

I want to connect my spring cloud config server by adding @EnableConfigServer but getting error that EnableConfigServer cannot be resolved to a type. Already check the, name, git repository path and i also already try to clean the project still gettin same error.I cant view localhost:8888/limits-service/default.Please help me This my pom.xml Answer You can try, as in here, to

Get the latest commit in a repository with JGit

I want to get the last commit metadata (the youngest one by date) in a repository using JGit. I know that I can get the commit metadata using: But how to get the latest commit hash? Is there any other way to get the youngest by date RevCommit in a repository directly? Answer Compare by dates of last commits in