git log has a nice --format option to specify how the output should be formatted.
But git blame doesn't seem to have an equivalent, although default output of blame is not quite human-friendly. I would like to see much less.
For example, instead of:
5600cab7 js/sidebar/VehicleGrid.js (Rene Saarsoo 2009-10-08 18:55:24 +0000 1...
The git clone help page only says that --mirror "Set up a mirror of the remote repository. This implies --bare." But doesn't go into detail about how the --mirror clone is different from a --bare clone.
...
I ran a git pull --rebase, and aborted this after fixing several merge-conflicts using git rebase --abort.
Before the attempted rebase, git status told me: "Your branch is ahead of 'origin/master' by 20 commits."
Now I get: "Your branch and 'origin/master' have diverged, and have 15 and 5 different commit(s) each, respectively."
I have...
Hello, I'm working under project (using github) with my friend. The situation:
My friend checkouted the sources
I made some changes and committed them
My friend worked with his copy and now he tries to commit them. The problem is that he can't do this.
The only way I see now is reseting his local copy, pull the newest changes and wri...
Hi, I installed a fresh instance of gitosis, and also have an old one.
What do I have to do to move the repos from the old to the new server? Clone on the new server?
What do I have to change on the developer computers, to switch the remote branch? Or do they need to clone again?
...
My Gmail/Google username is not a username I generally go by, and one I'd rather forget. I don't seem to be able to change my Google username, but I contribute to a Google Code project using git svn.
In Git, I can specify my name and e-mail address using my ~/.gitconfig file in the [user] section. Same with Mercurial and hgrc.
But the ...
Ok, so i have run into this a few times and it's really annoying. Scenario:
modify a file say a.txt (add say two lines)
stash it
stash apply
git reset
remove the two lines added to a.txt because you want to commit and push these partial changes
git add a.txt
git commit the above, and push the changes (push irrelevant for this discussi...
Is there a way to pull/fetch code from a specific tag in a repo.
Am aware that after clone, i can checkout to the tag but is it possible to specify a tag during a pull?
In ClearCase i can rebase or deliver a specific baseline of code, is there a way where i can use git tags similarly to pull/push code upto a specified tag?
...
I ended up with a detached head today, the same problem as described in this question:
"git push says everything up-to-date even though I have local changes"
As far as I know I didn't do anything out of the ordinary, just commits and pushes from my local repo.
So how did I end up with a detached head?
...
Single Page Javascript Application
I have built a sophisticated ajax-driven single page webapp that uses a RESTful backend web service serving JSON. The javascript is split into many different files, each file representing some sort of feature or component.
While the service has been in alpha testing, I've just be serving all these fil...
Is it possible to modify the commented part of the default git commit message?
I want to add a bit more 'context' information for my users.
# Please enter the commit message for your changes.
# (Comment lines starting with '#' will not be included)
# Explicit paths specified without -i nor -o; assuming --only paths...
# On branch master...
for example i commit some files, next day some more files, and so on, after some days i want to view all my committed files, and view its difference with remote repo. Note i have not Push any thing. just want to verify that if i push some thing then will goes to remote repo.
...
Installing a recent gitextensions on a windows 7 machine gives me
an "invalid short file name username.user".
Installing as a different user, even as local admin works, but the extensions work only when I am logged on as this user.
As normal user, I can start the exe and it works fine, but the explorer integration and VS plugins don't ...
I am currently working on a project and using machines in two different locations to do it. I have created a branch for the feature I am working on and when I finish some work on it I amend my commit to that branch and push it to the server so I can pick up where I left off on my other machine.
When I try to send my amended commit it re...
Hello again!
I am currently looking at the efficiency and ease of our companies source code / resource management tools..
For the last couple of months i have been using Git to manage all of my web development code and images.. and for me it works fine.
However some of my colleges aren't entirely comfortable using the command line.
o...
I am in the process of moving my team from TFS to GIT in the very near future, but before I do so I want to know about any pitfalls that others may have experienced when moving a team from a centralized source control such as CVS, SVN, TFS, etc to a distributed source control system like GIT or Mecurial.
Some questions that instantly ca...
Hello!
I am a "GIT newbie" as of starting with Heroku, and I'm interested in knowing what would be best practice in how to work with it.
As of now my site has one production environment and one staging environment.
However I'm only using the most basic GIT commands, i e:
git add .
git commit -m "some changes"
git push production mast...
Hi,
is there a way to browse the history versions (rather than the plain diff) in a git repo?
i'm looking something like what you would expect from tortoiseSvn log/diff browser but for ubuntu. I don't want to see the diffs directly but rather the whole file with the version in its original context, with a highlight showing diffs from p...
Hi all,
I work in a branch 'develop', and when ready to merge with master, use interactive rebase to squash all my little commits into one feature-encompassing commit which I gets applied on top of master.
Works well, only issue I have is the time the commit is labelled is of the first small commit. It makes sense as that is the only c...
I'm developing several mavenised projects on my laptop, and periodically pushing to github. I've set up a private hudson server in the cloud that polls the git repositories for updates, and thus performs builds - so far so good.
Unfortunately, when I execute a 'mvn release:prepare' on my laptop to perform a release (say '1.5'), the two ...