I love the git blame command, it is very useful for tracking down people who don’t own up to writing code. 🙂 However, is it possible to see who edited a specific line before the commit reported by git blame, e.g. a history of commits for a given line? For example, I run the following […]
Since i switched to git from svn i started make more commits every time i recompile and my tests pass i commit my work. In the end i end up committing function by function. I also track some other projects using git like emacs,wordpress etc. I see that they do not commit that often. So […]
This question seems like a duplicate but it’s really not. Just a slight difference that keeps on repeating. git keeps on telling me: “please tell me who you are”, even after setting it up. when I run git commit, this is what I get…. $ git commit *** Please tell me who you are. Run […]
Git treats lines starting with # as comment lines when committing. this is very annoying when working with a ticket tracking system, and trying to write the ticket number at the beginning of the line, e.g. #123 salt hashed passwords git will simply remove the line from the commit message. is there any way to […]
I am new to Jenkins. How to trigger a build remotely from Jenkins? Can anybody tell how to configure Git post commit hook? My requirement is whenever changes are made in the Git repository for a particular project it will automatically start Jenkins build for that project. In Jenkins trigger build section I selected trigger […]
I have made several commits on different files, but so far I would like to push to my remote repository only a specific commit. Is that possible?
The answers to How to modify existing, unpushed commits? describe a way to amend previous commit messages that haven’t yet been pushed upstream. The new messages inherit the timestamps of the original commits. This seems logical, but is there a way to also re-set the times?
I would like to remove selected commit log entries from a linear commit tree, so that the entries do not show in the commit log. My commit tree looks something like: R–A–B–C–D–E–HEAD I would like to remove the B and C entries so that they do not show in the commit log, but changes from […]
I accidentally amended my previous commit. The commit should have been separate to keep history of the changes I made to a particular file. Is there a way to undo that last commit? If I do something like git reset –hard HEAD^, the first commit also is undone. (I have not yet pushed to any […]
I have a git repository that looks like this: A -> B -> C -> D -> HEAD I want the head of the branch to point to A, i.e. I want B, C, D, and HEAD to disappear and I want head to be synonymous with A. It sounds like I can either try […]