I have a problem , I need to see difference of first and third commit in git, but I can see diff of any commit and previous to it.
I lost some code after running git reset –hard HEAD and I never committed the work. Is there any way to get this code back? Was it logged anywhere? Can I undo the command?
I’ve been following a tutorial on Git and I’m a bit confused about a few specific issues. The main reason I need to use version control right now is simply to access previous versions of my project if I make a mistake and don’t know how to get rid of an error. Is it true […]
I would like to check for author‘s e-mail and name, surname to verify who’s pushing to my repo. Is there any way that I can come up with a command in git to show commiter’s name/e-mail given only SHA1 of the commit? This is what I came up with but it’s far from ideal solution […]
I typed in ‘git –commit‘ and got the following on my terminal # Please enter the commit message for your changes. Lines starting # with ‘#’ will be ignored, and an empty message aborts the commit. # On branch master # # Initial commit # # Changes to be committed: # new file: index.html # […]
I was looking at apache-drill commit 3efc2eca and I realized that it is older than its parent commit 8614bae. I have had a couple of other similar observations. How can I explain them?
As I had understood it, when you do a commit in Git, a snapshot of the entire state of the repository is made and that allows me to go back to that state when its necessary. So, to me a commit represents not a change, but a state of a repository. When you want to […]
Can I set git to show me the diffs while doing the interactive commit (i.e. no -m”msg”) This would let me see what the changes are I am committing.
Is there a way to keep all my changes now, and still reverse back my app to a certain commit and start going through all other commits to see which one caused an issue in my app? I did a lot of changes, and it would take me a long time to check everything, so […]
I have this big repository containing different modules, which should have been broken down in different repositories, one for each module. Sometimes I created a branch, say featbranch, in the repo to work on a specific module, but featbranch had no meaning at all for other modules. You can imagine the mess this could cause… […]