Skip to main content
1 vote
1 answer
128 views

Here's a common workflow: Make some changes and commit, e.g. git commit -m 'add action buttons' Make a bunch of interim commits Realize I want to fix that first commit Search for the commit SHA in ...
Big McLargeHuge's user avatar
6 votes
3 answers
2k views

In pre-merge-commit, I need the hash of the merge head to verify a few things about the commits that are about to be merged to the current branch. However, it seems that neither the reference ...
Piotr Siupa's user avatar
  • 5,169
0 votes
0 answers
1k views

I have a Jenkins build job with Source Code Management > GIT > Repository URL: https://GitHub_repo_url/branch_name this will pull the the HEAD revision out of the branch. How can I pull code of ...
Heinz's user avatar
  • 1,055
1 vote
0 answers
933 views

One strange issue i am facing is git history extenstion in VSCode throwing me error that - ambiguous argument HEAD if i select a file and click on git history extension button to see the history on ...
Reese's user avatar
  • 479
1 vote
0 answers
307 views

In git help log and git help revisions, it is documented how to include or exclude specific commits/refs and their ancestors in git log. I am now looking for a way to exclude children of a given rev, ...
donquixote's user avatar
  • 5,640
2 votes
1 answer
29 views

The most recent commit whose commit message contains "foo" is spelled :/foo, as in: git show :/foo How does one refer to the parent of that commit? :/foo^ is incorrect; that results in: fatal: ...
larsks's user avatar
  • 318k
4 votes
1 answer
846 views

I am building docker image for a service at hub.docker.com. During compilation, the commit hash of the source is passed as an argument to CMake (so that it can be embedded in the version information). ...
eudoxos's user avatar
  • 19.2k
3 votes
1 answer
2k views

How can I refer to a git commit by the text / words in its commit message headline? I want to avoid: Mouse copy / paste of a commit hash from git log Typing of commit hexadecimal digits
Tom Hale's user avatar
  • 48.1k
0 votes
0 answers
64 views

I am iterating over a git repo, or sub repos recursively and I want to output (along with other details) the revision id of the latest commit (aka most recent) of when a file was modified. My problem ...
hack-is-art's user avatar
3 votes
2 answers
91 views

My code is the following system('git log --pretty=format:[%h]: %an') where %h gives the revision id of the commit, and it is seven characters long and %an is the author name. My problem is that I ...
hack-is-art's user avatar
6 votes
4 answers
3k views

I know how to refer to a parent commit as HEAD^. But is it possible to refer to a child commit in a similar way?
konstunn's user avatar
  • 355
1 vote
2 answers
229 views

I need to see either (1) log messages from HEAD to ec9cb4106 or (2) rollup diff from HEAD to ec9cb4106. The revision selection page does not appear to discuss it, and I can't get git to accept the ...
jww's user avatar
  • 104k
11 votes
2 answers
3k views

I'm trying to create archive with webpack with suffix by git-revision. Could you tell me please what is good way to do it?
Stepan Suvorov's user avatar
67 votes
4 answers
194k views

Does anyone know what is the difference? Seems to me, it is the same. But when I run it, it didn't do the same thing: git rebase origin/branch - ok rebases from remote branch git rebase origin ...
Adam's user avatar
  • 1,999