How do you find who merged a git commit into a branch?
There is a file in our git repository in work, I want to find out who merged this file into a branch.
I have the commit hash that identifies the commit (lets say
552a976f1a25f9bad57efb9455e951f6b7b3367f) that introduced the file, and I know that the file is on the branch
How can I find the hash of the commit that merged the commit above into the
staging branch? I want to find the user who merged, and the date of the merge.
Given the following history: master A-B-C-D-E-F \ topic G-H-I What git command can I use to determine that C caused G to be merged into master? Said another way, ignoring the branch name: How can I
How will i create a new remote branch on top of a specific commit? Here is how my current commits:- a-------b-------c--------d-------e I checkedout new local branch from the point 'c' commit git che
There are lots of scripts floating around on the internet for deleting already-merged branches such as $ git branch --merged master | grep -v master | xargs -n 1 git branch -d but I'd like to keep my
I need to do a git revert -m , but I have not been able to find any documentation on how the commit parents are numbered. Everything I've seen (including the help pages for rev-parse) just tells me th
I am trying to find how to reference branch start commit from script. I mean the commit sha at which branch was forked. Moreover I expect it work for history made from svn repo. This post just gives f
git branch --merged doesn't appear to play nicely with --squash. If you do a normal git merge, then git branch --merged tells you which branches have been merged. This is not the case however if the
I want to be able to do this for a script. I'm essentially re-creating the entire version history of some code in git - it currently uses a different version control system. I need the script to be ab
How do you stop tracking a remote branch in Git? I am asking to stop tracking because in my concrete case, I want to delete the local branch, but not the remote one. Deleting the local one and pushing
I have successfully split a previous commit deadbeef using git rebase -i deadbeef~1 as suggested in this question. I did this on my development branch. As far as i can tell everything is fine, deadbee
I know how to list the remote branches $ git branch -a And I know how to find the head commit hash of my current branch $ git rev-parse HEAD But I'm not sure how to list all the head commit hashes f
sorry if this question exists, I surprisingly could not find it :/ How can I perform a git diff between two files within the same branch & same commit? i.e. git diff fileA.php fileB.php (ideally w
Our company git workflow looks like this: Every team member has there own branch and pulls from and pushes to a main branch called develop. Whenever I go git pull develop git automatically opens up a
I want to find the most recent commit that modified a source file. I can use git blame to see all the dates for commits by each line, but it’s difficult to see exactly which commit was the last one t
In another question it was recommend that I try resetting a remote tracking branch to an earlier commit and performing an import a second time. I can't figure out how to do that! I can reset master, b
If I have a public Git repository that contains 3 branches like the following: (release-to-customerA) | U (master) / | A---B---C---D---E ... S---T | (release-to-customerB) where commit 'B' was the o
Whenever I try to push in Git I get this: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you can merge. Running git status I get: # On branch master nothing
I'm new to Git and a bit confused. I have Master branch and have created a second feature branch. If I make changes in my feature branch and then switch to Master, will my changes be lost if I don't
I want to be able to find a certain string which was introduced in any commit in any branch, how can I do that? I found something (that I modified for Win32), but git whatchanged doesn't seem to be lo
Is there some convention for the order of a commit's parents? Because one of the commit's parents should be to be to previous commit on the current branch that is being merged into and the rest are pr
I'm trying to determine the best way to programmatically determine which branches have been recently merged into master. Ideally this script will run off a git hook, parsing the values and then do ext
I did some changes and then did a commit. Then I realized that I am on an unnamed branch. So I checked out another branch (with a name). Now I want to recover the commit that I did to the unnamed bran
I have made some changes to a file and commit them. Then I checkout to an older branch. After that I find all the changes I have made disappears and the commit I made also disappears. How can I find
I know how to add and commit one file: git add [file name] and git commit -m but what about if I have many file in different dir. how is the right way to do it? Thanks.
I am creating/updating files under locales/US/en/ folder. These files should be auto copied and commit into another folder content/en-US with in same branch during git push/post-commit. Could you
I made three commits on Branch A git checkout Branch B git merge --squash A git commit -m B:merge A into B by squash How can I detect branch A has been merged into B by squash?
I stupidly pushed a commit to github with a very messed up commit name. How do I change this? Does git ammend still work for already pushed commit?
In our Git process, master is the integration branch for topic and fix branches for the current release cycle, but we also maintain a stable branch where we have to backport carefully some of our
My intention is to verify whether the particular commit is present on a given branch or not. I know we can use git branch --contains commit id But it needs that repo to be cloned in your local machin
Here's the scenario. I have a series of commits in branch my_new_branch I want to push this branch up to the remote repo as a different name and track it. If I do: git push origin my_new_branch:differ
May be its asked already but I couldn't find it in here. I have a branch FEATURE merged into a branch STABLE and currently when I do git show from STABLE am getting the last commit which is commit 26
We're getting an error in one of our branches in deployment and looking at it I see that one file is missing a line of code. How do I find out who removed it and when? I know this has something to do
i checked out a remote branch like git checkout -b newBranch origin/some-remote-branch. but whenever i do a push it is pushed to a new branch newBranch . how to tell git to automatically push to the b
I cannot figure out how to update a branch to be identical to another branch. Here's an example: git init test; cd test echo apple >a; echo banana >b; git add a b; git commit -m 'A1/a:apple;b:ba
ref^ refers to the commit before ref, what about getting the commit after ref? For example, if I git checkout 12345 how do I check out the next commit? Thanks. PS Yes, git's a DAG node pointer struct
Using Gerrit it is easy to accidentally merge unstable code from the develop branch into the stable branch: $ git checkout develop $ commit $ git push origin HEAD:refs/for/stable In Gerrit it isn't v
How come when I create a new branch and make commits to it I am not seeing it branch off in my graph. Here is the code i am doing: git init git add . git commit -a ... other commits in here git checko
After running git filter-branch, how do I get a list of old commit SHAs as rewritten by filter-branch to their new corresponding commit SHAs? For example, something similar to: b19fd985746c1f060f761d4
If you want to move a commit to the staging area - that is uncommit it and move all of the changes which were in it into the staging area (effectively putting the branch in the state that it would hav
,Let's say I have a master Git branch and a feature branch off of master. master A -> B -> C -> D feature B -> E -> F -> G and I merge feature into master i.e. merge, not
This question already has an answer here: Undo the last Git commit? 29 answers Delete commits from a branch in Git 12 answers How to delete commit that is pushed to the remote repository? 3
How to set current date as git commit message?
I am attempting to figure out which remote branch was most recently updated. Something like 'git show-ref' but in chronological order would be good enough. How do I go about doing this?
With the following git history: f---g---h--- feature / \ c---e---i---j---k---l--- release / \ -a--b---d---m---n---o---p---q---[hundreds of commits]--- master I have the SHA of commit g. Neither feat
I checked some source code into GIT with the commit message Build 0051. However, I can't seem to find that source code any more - how do I extract this source from the GIT repository, using the comm
With SVN it is easy to reverse-merge a commit, but how to do that with Git?
We use the following git workflow at my company when coding up a new story: Create a topic branch off of master (production/stable) Create as many commits as desired to implement feature. do a git me
I have a remote branch with a name that matches a prefix of existing commit hash in the master branch. I want to checkout this branch, but git will go for the commit instead. Is there an easy solution
I wanted to undo a couple minor changes on my repo. I decided to go back two commits, and did git reset --hard <commit> and git push -f Everything went through fine. But when I pushed to hero
I am working on SQL Server 2005 SP3. From Activity monitor, I notice a lot of processors were locked in suspended mode. do you know how to find who locks my processes?
I'm currently busy with project with a lot of branches and I have a tag for last changes which where done on one of the branches. But it's not clear for me on which branch this tag. How to find out o