[git-users] git_merge - files?

2014-03-20 Thread Göran
I've got a couple of files at the root of my repository named 
*.git_merge_a.*  is a numerical value.
Why are they created? What to do with them?

Regards.
Göran

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] git_merge - files?

2014-03-20 Thread Konstantin Khomoutov
On Thu, 20 Mar 2014 00:32:33 -0700 (PDT)
Göran  wrote:

> I've got a couple of files at the root of my repository named 
> *.git_merge_a.*  is a numerical value.
> Why are they created? What to do with them?

Git itself does not create such files AFAIK.
So supposedly they were created by a tool which calls out to Git,
supposedly your IDE.  Alternatively, they might have been created
by a merge tool you called *from* Git.

I'd say, drop to the console window, `cd` to the project's folder
and run `git status` -- if it lists these files as "untracked"
then just delete them.  If not, let's have another round of research.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] tracking clone activity from central

2014-03-20 Thread Konstantin Khomoutov
On Wed, 19 Mar 2014 14:01:38 -0700 (PDT)
Bruce Hart  wrote:

> i'm new to git so i don't know if i have the lingo down yet but here
> goes.
> 
> is there a way to run a report to see any changes that have been made
> with the clone repos but not pushed yet to the central repo?
> basically something that would let the project leader nag those who
> were lagging with their pushes to central? and also the project
> leader could detect cases where multiple developers are working on
> the same file(s) so there might be a possible merge conflict in the
> future?

Not with plain Git (or "not with just Git itself" if you prefer it this
way): Git repositories are not aware of who and when cloned them, and
for which purpose -- this functionality is completely orthogonal to Git.

So there exist other solutions based on Git which add social element to
it -- github is supposedly the most visible solution.  So if you want
something like this it has to be implemented separately.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Bug report for git gui.

2014-03-20 Thread Konstantin Khomoutov
On Wed, 19 Mar 2014 14:34:09 -0700 (PDT)
p@orange.fr wrote:

> Is it the right place to report bug on git gui?
> Or else where can I report git gui bug?

Bugs against stock Git components should be reported on the main Git
list -- please consult [1] for more details.

1. https://gist.github.com/tfnico/4441562

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] git version mismatch between central repo and clone repos

2014-03-20 Thread Konstantin Khomoutov
On Wed, 19 Mar 2014 14:04:15 -0700 (PDT)
Bruce Hart  wrote:

> in an enviroment with a central repo and then a bunch of clone repos
> it is important that all machines involved be running the same
> version of git?

No, it's not important.  Git wire protocol is rather stable so you're
sort of [*] guaranteed that at any two versions of Git belonging
to the same major release (1.x) will interoperate OK.  And I'm quite
positive that 2.x will happily interoperate with 1.x.

If you're afraid because of hassles involved with repo versions in
Bazaar, Git works differently, and it in, repo format is distinct from
wire protocol (which is only concerned with SHA-1 names of repo objects
and their relations).

You *might* have troubles accessing *the same* repo with different
versions of Git -- say, when the repo is located on a network
filesystem; even more so, if this is a non-bare repo.  This is because
newer versions of Git might add new configuration options or interpret
the defaults differently (only true between major versions, like 1.x ->
2.x) or have different format of the index file etc.

So while each version of Git works with its own local repository you
should be fine.

[*] Of course, there might be bugs which break this promise but I've not
heard of such yet.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] git_merge - files?

2014-03-20 Thread Göran
Thank you for the response!

I've investigated this further and found an wrapper for git (GitExtension) 
that we are using, suspectable to use these files.
A quick scan of the sourcetree for this utility shows that it uses this 
filenames. But I didn't find any places where the files actually are 
created.
Further investigation needed ...

Den torsdagen den 20:e mars 2014 kl. 11:30:05 UTC+1 skrev Konstantin 
Khomoutov:
>
> On Thu, 20 Mar 2014 00:32:33 -0700 (PDT) 
> Göran > wrote: 
>
> > I've got a couple of files at the root of my repository named 
> > *.git_merge_a.*  is a numerical value. 
> > Why are they created? What to do with them? 
>
> Git itself does not create such files AFAIK. 
> So supposedly they were created by a tool which calls out to Git, 
> supposedly your IDE.  Alternatively, they might have been created 
> by a merge tool you called *from* Git. 
>
> I'd say, drop to the console window, `cd` to the project's folder 
> and run `git status` -- if it lists these files as "untracked" 
> then just delete them.  If not, let's have another round of research. 
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Can I use git as auto-updater

2014-03-20 Thread Nelson Efrain A. Cruz
Try to see if your bare repo (the one in htdocs) its being updated, try to
clone it (git clone). Seems that there are no problems with the commands
you are using, maybe some unneeded flags.

For the files you need to leave untouched you can create a gitignore file
where you can especify files and folders to be ignored, this files and
folders will be totaly ignored by git. Search for .gitignore

And as a comment, i dont know if using git for this is the best aproach but
if it's working for you, go ahead.


2014-03-20 2:25 GMT-03:00 Senjin Dragon :

> Let me sketch out what I'm trying to do. I'm not sure if I can use git for
> this or not. I think I can but I'm getting headaches going through the
> documentation and experimenting. It's all a bit confusing to me.
>
> I run a minecraft game server and associated client on my machine and a
> friends machine who's computer-illiterate. I'm quite actively maintaining
> this server by updating the various mods and configuration files that go
> with it. These files also have to end up on the clients. On my own machine
> I can simply copy it over, rename and delete the files. But it would be
> really nice if I can do this on my friends pc as well. That he starts the
> game, it checks for updates/changes, downloads and overwrites the existing
> files. Doing the renames, deletes and updates for me.
>
> The client however also keeps it's own files among the same files that the
> server files end up with. These need to stay the way they are on the client
> and cannot be touched. They can be different among clients and contain
> personal settings.
>
> The server also has files which shouldn't end up with the clients as
> they're server-only.
>
> So to do this, I made a git enabled folder on my machine (using git init)
> in which I have just the files that I manage and nothing else. In the same
> directory structure as they need to end up on the client and server.
> When I make changes, I change them in that directory and run a batch
> script (it's all on windows), to commit the changes to the local repository
> and I use push to copy them over to another directory as well which is
> being served by my webserver.
>
> In the htdocs folder of my apache server I made a DragonCraftRepo
> subdirectory and ran git init --bare
> I then go back to the folder where I make my changes and do a:
> git remote add origin C:/Apache24/htdocs/DragonCraftRepo
>
> The batch file I run after I've done an update is as follows.
> (sorry for the date/time localization stuff in there, but it's the only
> way I can get a timestamp from the localized windows date/time)
>
> @echo off
>> cd Repository
>> setlocal enabledelayedexpansion
>> for /f "tokens=1-7 delims=.:/- " %%a in ("%date% %time%") do (
>>   if "%%b"=="Jan" set MM=01
>>   if "%%b"=="Feb" set MM=02
>>   if "%%b"=="Mar" set MM=03
>>   if "%%b"=="Apr" set MM=04
>>   if "%%b"=="May" set MM=05
>>   if "%%b"=="Jun" set MM=06
>>   if "%%b"=="Jul" set MM=07
>>   if "%%b"=="Aug" set MM=08
>>   if "%%b"=="Sep" set MM=09
>>   if "%%b"=="Oct" set MM=10
>>   if "%%b"=="Nov" set MM=11
>>   if "%%b"=="Dec" set MM=12
>>   set HH=0%%d
>>   set HH=!HH:~-2!
>>   set YEAR=20%%c
>>   set MONTH=!MM!
>>   set DAY=%%a
>>   set HOUR=!HH!
>>   git add -A
>>   git commit -a --quiet --no-edit -m "Update !YEAR!!MONTH!!DAY!!HOUR!"
>>   git push origin master
>> )
>> endlocal
>
>
> So far so good, at least I think so. I don't know half of what I'm doing.
> I don't even know if those flags I add to the git commands are the right
> ones to use for what I want to do. I think they are after experimenting.
> But I'm still a bit in doubt about it all.
>
> Then the next part, setting it up so that those files and changes get
> updated with the client.
> This is where I really get stuck.
>
> First of all, I don't know if I should pull, checkout, clone, fetch or
> merge. The trouble is getting the files I pull out to end up in the same
> directory the batch file is running from because it wants to make a
> subdirectory to check out into. And then the other problem is that there
> already existing files which need to stay there and stay untouched. Git
> refused to do this at first so after searching all over I found the
> solution:
>
> So I go into the client's directory and then:
> git init
> git remote add origin http://example.com/DragonCraftRepo
> git fetch
> git checkout -t origin/master
>
> And that worked fine the first time.
> It doesn't run a second time.
>
> It did merge the repository's files with the existing files.
>
> Ok, so I think That's it, now it's working. I just need to pull  to get
> the updates from here on
>
> git pull
>
> Yes, all seems fine.
>
> I make updates in my main working directory, change some of my filenames,
> add a little bit here and there, see how things work out
> Run the update creating batch. Yes, nice. It sees the changes and pushed
> them to the local repository and to the webserver's folder.
>
> Back to the client directory, see if t

Re: [git-users] Can I use git as auto-updater

2014-03-20 Thread Rustom Mody
On Thu, Mar 20, 2014 at 10:55 AM, Senjin Dragon
 wrote:
> Let me sketch out what I'm trying to do. I'm not sure if I can use git for
> this or not. I think I can but I'm getting headaches going through the
> documentation and experimenting. It's all a bit confusing to me.
>
> I run a minecraft game server and associated client on my machine and a
> friends machine who's computer-illiterate. I'm quite actively maintaining
> this server by updating the various mods and configuration files that go
> with it. These files also have to end up on the clients. On my own machine I
> can simply copy it over, rename and delete the files. But it would be really
> nice if I can do this on my friends pc as well. That he starts the game, it
> checks for updates/changes, downloads and overwrites the existing files.
> Doing the renames, deletes and updates for me.

Theres an upcoming bunch of git-using tools with this (kind of) intent:
mr, myrepos, etckeeper, vcsh.

The mailing list where all these are discussed is here
http://vcs-home.branchable.com/

Im an ignoramus who mostly lurks there (as here!) so dont ask me more!

Rusi


-- 
http://www.the-magus.in
http://blog.languager.org

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.