Skip to content

How could I list commits in a pull request or feature branch? #7117

@yanOnGithub

Description

@yanOnGithub

I tried a lot of these.
https://www.google.com/search?q=git+show+commits+on+a+feature+branch

Let's use this as an example:
https://github.com/go-gitea/gitea/pull/7089/commits

There are 7 commits in this PR. Suppose I am standing in the head of the feature branch after running one of the following
git checkout "mrsdizzie:fix-7068"
git checkout 177092a

Is there any way to list the 7 commits on CLI? Any git commands? Any shell scripts? Any wget/curl/REST API?

Further question: Suppose I am in the middle (cbfc6aa), can I list the 4 commits starting from 8263e09?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions