I am just beginning to use git. I've read the O'Reilly book (by
Loeliger and McCullough), and (unexpectedly) it didn't give me a clear
view of some of the messier aspects of git. So as a first question,
I'd like to know if anyone knows of an exposition that gives a clear
and accurate description
From: Ryan Hodson hodson.r...@gmail.com
If you're not looking for a submodule, you can just move the tracked files
into a subdirectory with 'mv' or through your file browser. Then run 'git
add .' in the project root and Git will figure out the file renames on its
own. The 'git mv' command
From: Philip Oakley philipoak...@iee.org
But is there some way to have git keep the repository files
encrypted.
In practice, it seems the easiest way to do that is to put the
repository files in a separate, encrypted file system. That would
take tremendously less work than incorporating
From: Philip Oakley philipoak...@iee.org
Another question is this: I believe that the complete repository and
its status lives in the .git directory. So if I move ./.git to
../.git,
it has the same effect as if I moved all the normal files into a
subdirectory of .. Is that
From: Konstantin Khomoutov flatw...@users.sourceforge.net
In general, it's impossible to copy a file from one branch to another,
preserving its history.
It must be *possible* to do that: You could do a merge between the
head of A and the head of B, where all of the files of A are carried
From: Konstantin Khomoutov flatw...@users.sourceforge.net
Since Git only records snapshots of whole trees and does not really
track individual files, there's no such *concept* as the history of an
individual file -- it might appear to exist (thanks to the
`git log ... filename` command) but
From: Konstantin Khomoutov flatw...@users.sourceforge.net
Since Git only records snapshots of whole trees and does not really
track individual files, there's no such *concept* as the history of an
individual file -- it might appear to exist (thanks to the
`git log ... filename`
From: lalebarde l.aleba...@free.fr
I am building a new SaaS product and a new company for it. This product
will add some functionalities to Git via hooks. So I don't modify Git nor
redistribute it. My service will be accessible by configuring the Git
config file.
Can I advertise my
From: Konstantin Khomoutov flatw...@users.sourceforge.net
That's great! ... But the existence of git-blame means that git can,
*in practice*, trace the history of an individual file, and even
individual lines within a file.
True, but your choice of the word trace is actually very
From: Eric B ebenza...@gmail.com
[eric git]$ git clone https://e...@git.assembla.com/myproj.git
Cloning into 'myproj'...
Password for 'https://e...@git.assembla.com':
error: RPC failed; result=22, HTTP code = 401
fatal: The remote end hung up unexpectedly
In all fairness, I do not know
From: Dun Peal dunpea...@gmail.com
Is there a clean and reliable way to do that, or are symbolic references
just not meant to be shared?
I may be well wrong, but my impression is that symbolic references are
like branch names, in that they aren't things that can be pushed or
pulled between
From: Prabu RM pr...@vembu.com
This is the error we face while doing git clone in Linux: error: RPC
failed
Any idea? This is the command we used to.
git clone http://user@gitserver/path/module.git
Trace the network traffic to see what request to gitserver is
failing, and how it is
From: Aaron Woehler aaron.woeh...@alaska.gov
I have two files in my repository that started showing up as single lines.
How do I fix this? The files show up fine in Eclipse and other editors.
Here is what git-gui shows me.
@@ -1 +1 @@
-cffunction name=table_data_inputcfargument
From: John McKown john.archie.mck...@gmail.com
This may be a rather ignorant question. It is based on the thread: Can Git
do all of this?. Konstantin indicated that Web suppliers such as GitHub
are not secure. Why is this? Well, I guess maybe they could be hacked from
the outside, or
From: Russell im.russell.smi...@gmail.com
The problem is that the local files and the files in the repo end up out of
sync. The local files have the old date, but the repo has the modified
date. I have to rm the file and git checkout myFile to get the change in
my local directory;
From: gaug...@gmail.com
1) Each developer having his own contetnts in a separate directory is not
able to test the code before pushing it to the bare repo which would update
the Work Directory- Coz of these steps even for say one jsp file change I
end up doing 20 commits until it starts
From: John McKown john.archie.mck...@gmail.com
You could have 3 Tomcat instances running on the same box simply by using
different ports for each. You could even allow each developer to have a
Tomcat instance on their desktop (Linux or Windows) by pointing that Tomcat
instance to their
From: Ivan L abys...@gmail.com
How can I delete from my repos the git objects that have appeared in the
cache repo? - The remote repo is a very huge one, and I don't want to waste
my space.
If there is no such ability, then how can I report it as a feature-request
to the git
From: Matthew Johnson mejoh...@gmail.com
Under Windows (cygwin) git status shows nothing to commit, only untracked
files, which is what I expect; only under F17 do I get several modified
files -- and these have old dates (e.g. Nov 27).
My guess is that it has something to do with
From: Matthew Johnson mejoh...@gmail.com
What differences does it display? It lists about a hundred .ogg files (like
the one I included) as 'modified'.
No, not what files are listed as different, but what are *the specific
differences* -- what does 'diff' show? The way to see that you have
From: Matthew Johnson mejoh...@gmail.com
Good guess, I had not been thinking about the different EOLs, but all the
files that show up as modified only under Fedora are .ogg files: no EOLs at
all.
Beware: You *think* of .ogg files as having no EOLs, but I'm sure
it contains plenty of
I'm investigating how rebase works, and I'm finding that it doesn't
work well if the rebased branch contains merges. Am I using rebase
incorrectly?
In particular, if there are merge commits on the old branch that
contain changes that are not contained in either of the commits that
are merged,
From: Philip Oakley philipoak...@iee.org
I then compiled with 'make prefix=/usr/local all' and got what I think
was a successful compile.
I don't know how to compile Git, but the general practice in Unix
builds is for make to *compile* the needed code, but only into files
within the
From: Tristan Stanic tritanix.z...@gmail.com
What is the reason the git developers use obscure syntax? This make the git
learning curve uselessly complex.
My belief is that the system grew over time, with many people using it
well before it reached the current state. Thus, whatever syntax
[git version 1.7.7.6]
From: Blind stoycho.slept...@gmail.com
just use the -m option for the git log (same for diff-tree -m infact).
Ugh. After the end of the procedure I posted, I executed git log
--graph -p -m. The output consists of:
* commit 18786ae12592f49859509ee4b20bb83979f6ea2b
From: Blind stoycho.slept...@gmail.com
there is still nothing wrong here,
just use the -m option for the git log (same for diff-tree -m infact).
If you go to the end of the new branch (git checkout rebase, but at
the end of the script, that is where you are already), and look at the
file
From: Fabrizio Cioni fabrizio.ci...@gmail.com
I don't understand why the existing logic allows it, but i clearly see how
a distracted/in a rush/sleepless developer can make a mess of it; still
recoverable but very time-consuming when you find it x days later.
There is the converse problem
From: Tom Avey toma...@fgbc.org
I could use some help with gitignore. I set up a .gitignore file in the
root of my project with a line for WEB-INF. Before setting up that
.gitignore, the project has already been init and commit to master as
well some branching. Do I have to do anything
From: William Seiti Mizuta william.miz...@gmail.com
You can use git grep string branch to check if the string exists in the
branch.
I think the question is, How do you determine which branch contains a
file that contains string?
Dale
--
You received this message because you are subscribed
From: John McKown john.archie.mck...@gmail.com
git branch | awk '{print $NF;}' | xargs -l git grep foo
Or (which is easier to generalize):
for BRANCH in $( git branch | cut -c 3- ) ; do git grep foo $BRANCH ; done
Dale
--
You received this message because you are subscribed to the Google
From: Matt Snow ctsgm...@gmail.com
For some unknown reason whenever I do a git pull, it just hangs. Nothing
happens. I have tried to remove all the files, do a git init, then try to
git pull again but no luck.
One brute-force technique is to use a trace command to see what git
is
From: Vasiliy Tzukanov vasy...@gmail.com
We need to figure out how can we manage few very similar projects in
parallel, without having to manually enforce their coherency.
I'd suggest that you determine that you want to have a single code
base from which an array of similar artifacts will
From: Konstantin Khomoutov flatw...@users.sourceforge.net
Depends on what you call the same directory.
Git commands also fall into different categories depending on what they
do.
I'm particularly interested in what happens if a process executes git
gc --aggressive. Are there dangers if
From: José Guilherme Vanz guilherme@gmail.com
I opened the modified file with a hexa viewer and the end of the lines
are 0D0A ( CRLF ).
Now extract the *previous* version of the file, the one that Git
thinks is so different, and look at its ends of lines.
Dale
--
You received this
From: Igor Kazarnovskiy igor.kazarnovs...@googlemail.com
Yes. I've added following entry to my .gitconfig:
[pack]
packSizeLimit = 20m
What is strange is that if i run git config --list i get following ouput:
core.symlinks=false
core.autocrlf=true
color.diff=auto
From: banaca...@gmail.com
I suppose I should say that I'm running OSX 10.8.2 on an iMac.
The command
ps $$
will show something like
PID TTY STAT TIME COMMAND
12596 pts/1Ss 0:00 /bin/bash --noediting -i
The question is what is showing under COMMAND. In my
From: Konstantin Khomoutov flatw...@users.sourceforge.net
Anyhow, the problem is with the second repository .gitsync, it also
uses the .gitignore files from my project's version control
(the .git dir), and I don't want to use those in syncing / backup.
Ideally .gitignore filename should
From: Surya kasturisu...@gmail.com
However, when I switched to master to create b2 branch for fixing bug,
I found all the untracked files of b1 branch in master!!
The important point is that these untracked changes were changes in
the files of the working directory. When you told Git to
From: yosi.tsu...@gmail.com
do you know any software that does what i need?
RCS does have such locking.
But most modern version control systems do not have such locking.
Even CVS (created in 1990, i.e., 23 years ago) does not lock. Indeed
its name is Concurrent Versions System -- its major
From: lei yang yanglei.f...@gmail.com
The have the same contents.
Meaning that the older commit causes significant changes to the files
and the newer commit causes no changes to the files. So someone made
a second commit that changed nothing but provided a slightly different
commit message.
From: lei yang yanglei.f...@gmail.com
I git show second commit id , it does change code, and the same as the
first
That is quite odd. Have you checked what the graph of commit parents
is?
Dale
--
You received this message because you are subscribed to the Google Groups Git
for human
From: Brian Jones caneri...@gmail.com
In out of the box git, do commits remember the name of the branch that
created them? If so, what command can I use to see that information? My
assumption is that commits do not record branch names but I want
confirmation.
You are correct, commits do
One approach might be to keep one set of branches that have your IDE
files, and one set of branches that don't. Something like:
1. remote tracking branch from the authoritative repository
2. your working branch, without IDE files
3. your working branch(es), with IDE files
You work in #3.
From: William Seiti Mizuta william.miz...@gmail.com
You don't need to install each library above if you will use git from the
repository. It is necessary only if you want to compile git source code. I
recommend you to uninstall the packages and install only git.
But that doesn't explain why
I must be overlooking something, because I don't think that you would
see the effect you are expecting:
From: Paul Smith p...@mad-scientist.net
We accept that git blame across the reformat will not be useful. I'm
going to lay down a label right before the reformat, so people can use
that
From: Paul Smith p...@mad-scientist.net
I'm not sure exactly how git blame works: the naive implementation
would walk back commits until it found one where each line was changed
(using a string compare). If that were the algorithm, the above would
work as I want. Obviously git blame is
From: Paul Smith p...@mad-scientist.net
So, I have a patch that was created with git diff (can't use
format-patch in my situation). If the patch deletes files, such as:
then those deletes are reflected in Git after the git apply, which is
good. But, if my patch ADDS a file, such as:
From: Paul Smith p...@mad-scientist.net
Sorry, I was unclear. No, I didn't use --index as I wanted to see the
applied content before it was committed.
I ran git diff -M -C master to generate the patch of changes between
my working directory and the master branch, then ran git apply (no
I'm considering using Git to track the customizations I make to the
system files of my Linux box. Has anyone done that and has hints on
how to make it work well?
Actually, I have two Linux boxes, and I need to track both sets of
customizations. It looks easy enough to have one repository on
From: Paul Smith p...@mad-scientist.net
Maybe I should restate. The problem is that if I run git apply
followed by git commit -a, the files that were modified and deleted
are both committed, but new files from the patch are not committed.
That is true.
I sort of understand it from a Git
OK, how to I set up a submodule?
As far as I can tell from Version Control with Git, I should be able
to:
1. Write .gitmodules with the appropriate configuration values. In my
case:
[submodule T9]
path = T9
url = /home/worley/T9
2. Execute git submodule init to copy these
OK, how to I set up a submodule?
As far as I can tell from Version Control with Git, I should be able
to:
1. Write .gitmodules with the appropriate configuration values. In my
case:
[submodule T9]
path = T9
url = /home/worley/T9
2. Execute git submodule init to copy these
From: Philip Oakley philipoak...@iee.org
1. Write .gitmodules with the appropriate configuration values. In my
case:
[submodule T9]
path = T9
url = /home/worley/T9
Is this the right form for the 'URL'. It just looks like a directory
path. Try
From: Thomas Ferris Nicolaisen tfn...@gmail.com
I get the same behavior here. However, when using the approach described
in http://git-scm.com/book/en/Git-Tools-Submodules - with *git submodule
add ...*, it works.
Reading in the docs about what the init and update commands do, I was
From: David Cherian david.cher...@gmail.com
I am startled with the fact that I can pull two completely different repos
into each other.
Ultimately, a Git repository is a storage bin of commits, with the
constraint that all of a commit's parents must also be in the storage
bin. If you pull
From: Philip Oakley philipoak...@iee.org
Update
Just found
http://git.661346.n2.nabble.com/gitk-pays-too-much-attention-to-file-timestamps-td4861833.html
git update-index --refresh -q (may need a trailing '*') appears to be the
plumbing command
(see third item *Jonathan
Is there a git porcelain command to revert the working dir state of a
staged file to its HEAD state and at the same time keep the staged state of
the file?
git show HEAD:$FILE $FILE
Dale
--
You received this message because you are subscribed to the Google Groups Git
for human beings
From: Thomas Ferris Nicolaisen tfn...@gmail.com
I get the same behavior here. However, when using the approach described
in http://git-scm.com/book/en/Git-Tools-Submodules - with *git submodule
add ...*, it works.
Reading in the docs about what the init and update commands do, I was
From: Rodolfo rodolfo.bor...@gmail.com
I'm not wrong, I know git is behaving as it was specified to behave.
I just think the other way would be better, and suggesting the
specification could be changed.
Be aware that there is a language difficulty here: The particular
verb forms that you
I have a brand new, large file in my repository. I know that its
object file is:
.git/objects/87/266d373359958e4fa9b51808ae076db9303923
I would like to determine the path name it has (and in which commit).
I would also like to be able to extract its file contents (somewhat
like git show would
From: Alex Lewis alex.lewis...@gmail.com
As far as I can tell in gitg you can save a copy of the file by going to
the files tab when a commit is selected, find the file you want and click
'n' drag it to your desktop or another folder. There doesn't appear to be a
menu option for this
From: Philip Oakley philipoak...@iee.org
Recently there have been a couple of example commands that have a single
dot '.' in the command line.
In this case what is its proper meaning, that is, is it expanded by the
bash shell, or by git it self, and what would its typical expanded
While experimenting with using Git as a backup tool (by automatically
snapshotting my home directory), I've generated a long branch which is
a series of commits that record states of my home directory.
Actually, I've got *two* such branches.
It would be very convenient if I could assemble the
From: Tim Richardson t...@tim-richardson.net
In git version 1.8.2.3 (in arch) I'm getting this message when doing git
commit -a
fatal: empty ident name (for tim@newton.(none)) not allowed
I get this message in a brand new repository.
I'm getting the same message in Ubuntu 12.10
From: Bráulio Bhavamitra brauli...@gmail.com
Adding highlevel commands, even though it could be implemented by a
simple alias, would put git in another level of user experience and
create a new standard for newbie users. What git developers think
about this?
It's a great idea, but beware
From: git-guy douglasdeod...@gmail.com
how guys i have 7 folders -
1 - main
6 subfolders for any projects
the thing is, the another 6 folders git work perfect
but if i try do a commit in the main, always apper that
git status
# On branch master
# Changes not staged for commit:
I an working on a system to archive files for backup purposes. The
current challenge is a Unix mailbox file which is about 100Mb. By its
nature, new mail is added to the file at the end and most of that is
rapidly deleted. The first 90%+ of the file is old mail that largely
doesn't change. I
When you want to create a new branch that has no ancestors, you use
git checkout --orphan to set the repository in a state where the
next commit will have no parents. However, it appears that one can
only do git checkout --orphan only if the *current* state will *not*
create an orphan commit.
From: Konstantin Khomoutov flatw...@users.sourceforge.net
Works for me with Git 1.8.1:
Good. I will check again when I upgrade to Git =1.8.1.
Dale
--
You received this message because you are subscribed to the Google Groups Git
for human beings group.
To unsubscribe from this group and
From: Thomas Ferris Nicolaisen tfn...@gmail.com
Repos (or branches) without history are funny places where a lot of
operations make less or more sense. The place to address this is the Git
developer mailing list, but the use-case does sound a bit, well, pointless.
It's true that it's not
From: Martin Mųller Skarbiniks Pedersen traxpla...@gmail.com
It sounds like you are using the mbox email format where everything is
kept inside a
single file.
That is correct.
Have you considered using the Maildir fomat instead ?
No, because my mail reader uses mbox format (and it might
$ time git repack -d -l -f --depth=250 --window=250 -A --window-memory=1g
From the manual pages and testing its behavior, when git repack is
executed by git gc, the default --window-memory value is supplied by
the pack.windowMemory configuration value:
pack.windowMemory
I'm having a problem with git add in version 1.7.7.6.
The situation is that I have a repository that is contained in a
second-level directory, a sub-sub-directory of /. The core.worktree
of the repository is /, so the working directory is the entire file
tree. I want this repository to track
From: PJ Weisberg pjweisb...@gmail.com
I would bet that /dev/dvd is on a different filesystem than the repository,
and /etc/hosts is not. Not that that explains/solves your problem; I'm
just speculating on what the difference might be. Git has no problem with
symlinks in a more
From: Konstantin Khomoutov flatw...@users.sourceforge.net
Then after fixing the bug in 3 files (for eg index.php, register.php
and login.php), i merge it in the master branch
*git checkout master
**git merge bugfix*
The above code will merge all the 3 files i made changes, but
From: Ling oylf1...@gmail.com
I'm about to move the git repository directory from current one: /opt/git
to new one: /passdev/git.
And I got some question regards how to perform this?
First I will Shut down git and I tried to search online but I can't find
any links on how to shutdown
From: lingfei ouyang oylf1...@gmail.com
Just another quick question? Since after we move the git repo folders, how
I can check if the git is running correctly?
Well, you could just run any Git command and see if it works.
But one choice is to do git fsck with any arguments needed to make
it
From: Chris Sweeney cswee...@google.com
g4: Error copying /home/szegedy/vs12/google3/learning/dist_belief/BUILD to
/tmp/g4-111957/46003002/depot/google3/learning/dist_belief/BUILD
You have checked that you aren't running into something simple, like
/tmp running out of space, being
From: HWSWMAN ed.pat...@gmail.com
i have a linux server with our website files, and i have me, plus a few
developers in another country ... myself and the developers share the same
SSH access username
That is generally a bad idea, because then the access of a single
developer cannot be
Generally, for simple projects with multiple developers, the pattern
is to have one central bare repository that is the official copy
of all the commits.
Each developer then has their own repository with an attached working
directory. Each repository is created as a clone of the central
From: Sam Roberts vieuxt...@gmail.com
You have interleaved your changes with others on master? If so, yes,
you should have done on a branch.
You can cherrypick them all to a branch, and rebase master... but
probably noone will thank you for that :-)
If you just want a diff that shows the
From: Ed Pataky ed.pat...@gmail.com
One thing I am concerned about is that it seems like there is no protection
from someone in via ftp and changing files .. i assumed that version
control meant that the files are protected .. why doesn't git protect the
files? What i mean is, this seems
From: Ed Pataky ed.pat...@gmail.com
the downside of this seems to be that all the developers/contributors have
to know how to merge correctly
Yeah, but that's true of any version control system that does not have
a centralized locking system to prevent two developers from changing a
single
From: HWSWMAN ed.pat...@gmail.com
If I create a git repo for multiple projects, for example ALL projects that
my team works on, when they clone and pull, do they have to download all
the files? Can they sort of selectively download the files they may want
to read or work on?
I
From: Ed Pataky ed.pat...@gmail.com
Can you have multiple access points within a repo?
What I mean is, suppose i have a repo accessing:
./DIR/
And I want some people to access
./DIR/FOLDER1/
and other to access
./DIR/FOLDER2/
But I want access to the whole thing .. can I make each
From: mkjkec2...@gmail.com
However , executing git command git push origin master to invoke the
pre-push hook results in an error illegal division by zero in
warnings.pm . Any clue on the behavioral difference when the script is
executed
via windows command prompt versus when invoked
From: tomgra...@gmail.com
: executing: cd /var/www/html/confix; echo $PATH 21;
: output: /sbin:/usr/sbin:/bin:/usr/bin
: executing: cd /var/www/html/confix; git init 21;
: output: Initialized empty Git repository in /var/www/html/confix/.git/
: executing: cd /var/www/html/confix; git
From: tomgra...@gmail.com
[Heavily cut -- see OP for the background.]
Gack! Yuck! Crufty code! Someone should be shot!
Ugh, back to reality. So I look at the trace just before the error:
Below are the last few lines of the strace before it falls over:
close(0)
From: tomgra...@gmail.com
Wow!!! Its going to take me a seriously long time to get over the sheer
brilliance (not to mention speed) of that diagnosis - really impressive! I
have to say I am so glad you helped me with this - I can safely say I would
never in a million years have reached
From: tomgra...@gmail.com
Hm.. well I definitely did learn a lot from this, and of course you
are right it is a straightforward logical process. The main reason I
say I wouldn't have got there is down to my intrinsic belief that I
was to blame for the error (which I am used to being the
From: ironm4nc...@gmail.com
I have got a problem with my bare repository with the size of 4 GB.
I experience some strange memory usage at cloning or fetching.
Git consumes about 30 GB RAM for these commands, but this is not the real
problem.
The real problem takes place at the client,
From: Konstantin Khomoutov flatw...@users.sourceforge.net
now, can i create a user that can only pull?
that would be great
There's no way to do implement this using plain Git.
If a user can only *read* the files in the Git repository, what can
the user do with the repostiory using Git?
From: python.beggine...@gmail.com
I am trying to grep for git commit msg in git log...once I do git log..the
log is really huge?is there a way to get only the last 100 commits or is
there an efficient way to search commit msg in git log ?suggestions please?
If your goal is to find a
From: John McKown john.archie.mck...@gmail.com
The staging area is also called the git index. This is probably better than
I am at explaining:
http://stackoverflow.com/questions/4084921/what-does-the-git-index-exactly-contain
but basically the index is in the .git/index directory.
The
From: Philip Oakley philipoak...@iee.org
Sounds like the 'git gc' needs an option to deliberately prune specific
files and/or large objects for such a case. Maybe something to discuss
on the main Git list - no doubt some discussion as to what the command
format would be and why it whould
From: Ling oylf1...@gmail.com
When I use the Git Extensions to clone the repository I got below error
message:
fatal: protocol error: bad line length character: Pass
I tried search online but I can't find any relative error out there, so
could anyone know what cause this error and
The change itself looks good; care to write it up as a proper patch
with a proposed log message?
I'm working on writing a proper patch, but I'm running into a
problem. The patch itself is from this commit:
$ git log -1
commit 07a25537909dd277426818a39d9bc4235e755383
Author: Dale
The problem seems to be that the Git process on the remote end has a
current working directory that it doesn't think is a Git reponsitory.
Most likely this is because the Git remote link has directed the
remote process to be in a directory that *isn't* a Git repository. Is
there any way that you
Date: Fri, 17 May 2013 12:17:11 -0700
From: Bryce Verdier bryceverd...@gmail.com
I think that qgit should meet most of your needs.
qgit is quite good. It isn't integrated into Emacs, but it does seem
to do most of what I think I'll need to do.
Dale
--
You received this message because
From: Alex Lewis alex.lewis...@gmail.com
Does http://www.emacswiki.org/emacs/Git do what you want?
No, nothing I found listed there seemed to be really helpful.
...Apologies if you already know what I discuss below but I just thought
I'd put it here just in case it helps...
So if I
1 - 100 of 280 matches
Mail list logo