Re: [git-users] git repository from windows to linux

2014-09-15 Thread Magnus Therning
On Sun, Sep 14, 2014 at 06:06:08AM -0700, Robert Polanski wrote:
> Hi,
> 
> I have changed system from windows to linux. 
> In project we use GIT.
> The question is: can I move the project directory (containing source and 
> .git directory) to linux and still use without problems or I have to 
> essentially clone the project over again?

I've never tried it, but all my experience of sharing files between
Windows and any other system suggests that you're likely to run into
issues.

Based on you actually asking I'm assuming there is no central repo you
can clone from... but if you have one, or can create (a temporary)
one, you've already found a solution.

Otherwise you can always look into git-bundle.  The following is a
simple/naive script I've used in the past to bundle up entire repos
for easy sharing:

~~~
#! /bin/bash

git bundle create $1 \
$(git for-each-ref --format '%(refname)' refs/heads | \
while read entry; do echo ${entry#refs/heads/}; done)
~~~

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

In a hierarchy, every employee tends to rise to his level of incompetence.
 -- The Peter Principle


pgpwnXqj2y47z.pgp
Description: PGP signature


[git-users] git repository from windows to linux

2014-09-15 Thread Robert Polanski
Hi,

I have changed system from windows to linux. 
In project we use GIT.
The question is: can I move the project directory (containing source and 
.git directory) to linux and still use without problems or I have to 
essentially clone the project over again?


-- 
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.