|
Is there a git command that can output for every commit:
id subject blobs it created with they path and size (like git ls-tree -l -r <commit> but only for created blobs)
Started by tig on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This one is pretty close:
git log --name-status
To get commits (all and output one line per commit):
git rev-list --all --pretty=oneline
Then split):
git diff-tree -r -c -M -C --no-....
You can get everything but size out of the box .
|
|
After seeing the following from the command line:
# On branch RB_3.0.10 # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # #...
Started by gemini929 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In that case, look at what settings you have for git config core.autocrlf and git are using git svn for integration....
What changes does git diff show on the file? On windows, I've seen issues with line-endings causing issues like this.
|
|
I have a (Windows) GIT repository in a folder called XXX , and I have second GIT repository called YYY .
I want to import the XXX repository into the YYY repository, add all XXX 's change history to YYY , and rename XXX to ZZZ .
Folder structure before...
Started by Vijay Patel on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm a fair git noob - so be careful the structure of XXX to match how you want it to look when it's within YYY:
cd XXX mkdir tmp git mv ZZZ tmp/ZZZ git mv tmp ZZZ....
I think you can do this using 'git mv' and 'git pull'.
|
Ask your Facebook Friends
|
I added a file to the index with:
git add somefile.txt
I then got the SHA1 for this file with:
git hash-object somefile.txt
I now have a SHA1 and I would like to retrieve the filename of the object in the index using the SHA1.
git show 5a5bf28dcd79449...
Started by git-noob on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
There's no such direct mapping....
After that use
git ls-tree < options.
Tree commit subject ; do git ls-tree -r $tree | grep "$obj_hash" \ | while read a b hash filename ; doCommit the file and note the sha1 hash of the commit object.
|
|
I've been managing all of my todo-lists as
~/git-repo/todo
which is kept under git. THen I add/delete files from the todo list, and have git autocommit all changes. However, I feel there should be more powerful tools.
Besides "cil" and git-issues [neither...
Started by anon on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The author mentions....
Articles on the subject A few articles and blogposts about distributed issue tracking:
Offline Issue Tracking : A blog entry.
Half a year ago now.
Emacs org-mode ( http://orgmode.org ) + git if necessary.
I wrote my own.
|
|
I recently tried to setup git repo on a linux box and wasted about 10 hours with absolutely no results. There aren't any problems with compilation or anything like that, it's just configuration issue. 2 hours later I got mercurial to do everything i need...
Started by alex on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And then an application of the tutorial: Gitosis — making hosting multiple Git repositories manageable (for Mac) or installing gitosis ....
I believe (but I have not tried it yet) that gitosis is the way to go in order to:
make hosting git .
|
|
We have a project with around 500,000 lines of code, managed with git, much of it several years old. We're about to make a series of modifications to bring the older code into conformance with the developer community's current standards and best practices...
Started by MarkusQ on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The -w option to git blame , git diff , and others causes git to ignore changes in whitespace, so you at a time, in a central Git repo (central as in "public reference for all other repositories to follow-...-one giant....
But...
|
|
I am installing msysgit 1.6.4 beta on my Win Vista development VPC. An install screen is requesting whether I want to use Unix line termination or DOS line termination. Ordinarily, I'd choose DOS, but the setup text indicates that DOS termination may ...
Started by Scott Davies on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But with core.autocrlf set to false.
Core.autocrlf
If true, makes git++, ...) and Unix alike, and can be processed by any 'sh' Git-scripts.
Is actually here to fix the value of the core.autocrlf config .
|
|
I am having an issue with rebasing from master on to a 'deploy' branch within one of my repositories.
My repo is setup as follows:
master - of course, the main branch deploy - a branch created where files like Capfile, deploy.rb etc are created and configured...
Started by Matthew Savage on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To get git rebase --continue to work you have markers “<<<<<<<”, “ ”, “ ”) and then git add them to the index (the index diff with git diff --cached , then ....
Wide merge when it comes to some "special" files.
|
|
In Subversion, it is easy to merge a range of changesets/diffs from a branch using "svn merge -r a:b mybranch". But in git, I found it is only possible to cherry-pick a single commit from a branch to apply that patch to my current working branch. So I...
Started by jscoot on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use git cherry (not cherry-pick !) to find out which commits should be inserted into your ....
Merge is intended to join two branches which have is fundamentally what you're asking for .
As far as I know, you can't git merge this way.
|