How to work with git repo between linux and windowsGit Symlinks in WindowsGit push error: Unable to unlink old (Permission denied)What generates the “text file busy” message in Unix?Add symlink file as file using Git on WindowsHow to add symlinks to git repository on Windows?How do I discard unstaged changes in Git?How to remove local (untracked) files from the current Git working tree?What is the difference between 'git pull' and 'git fetch'?How do I undo 'git add' before commit?How do I undo the most recent local commits in Git?How do I force “git pull” to overwrite local files?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?How do I revert a Git repository to a previous commit?How do I rename a local Git branch?

How to handle when PCs taste a potion that is actually poison?

How to avoid typing 'git' at the begining of every Git command

As easy as Three, Two, One... How fast can you go from Five to Four?

Is Jesus the last Prophet?

Do SFDX commands count toward limits?

Why are Payments from Apple to New Zealand and Australian bank accounts wire transfers?

Parsing text written the millitext font

Who is "He that flies" in Lord of the Rings?

What class is best to play when a level behind the rest of the party?

Insert a smallest possible positive integer into an array of unique integers

Why is the distribution of dark matter in a Galaxy different from the distribution of normal matter?

ASCII Meme Arrow Generator

Is it true that "only photographers care about noise"?

Professor Roman loves to teach unorthodox Chemistry

Grandpa has another non math question

What is this object?

If the pressure inside and outside a balloon balance, then why does air leave when it pops?

Part of my house is inexplicably gone

How (un)safe is it to ride barefoot?

How can you estimate a spike story?

Does a single fopen introduce TOCTOU vulnerability?

bash vs. zsh: What are the practical differences?

In The Incredibles 2, why does Screenslaver's name use a pun on something that doesn't exist in the 1950s pastiche?

Are regulatory compliance checks performed within the EU bloc?



How to work with git repo between linux and windows


Git Symlinks in WindowsGit push error: Unable to unlink old (Permission denied)What generates the “text file busy” message in Unix?Add symlink file as file using Git on WindowsHow to add symlinks to git repository on Windows?How do I discard unstaged changes in Git?How to remove local (untracked) files from the current Git working tree?What is the difference between 'git pull' and 'git fetch'?How do I undo 'git add' before commit?How do I undo the most recent local commits in Git?How do I force “git pull” to overwrite local files?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?How do I revert a Git repository to a previous commit?How do I rename a local Git branch?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have virtual box with installed arch linux. Host system is windows 10. I have mounted disc via virtual-box quest utills.
From VM level I clone repository inside shared windows/linux space. Clone is done with success.
But creating some files in working directory provide some errors:
(gcc repository)



error: unable to unlink old 'fixincludes/tests/base/ctype.h': Interrupted system call
error: unable to create file gcc/ada/libgnat/a-chacon.ads: File exists

error: unable to unlink old 'fixincludes/tests/base/sundev/vuid_event.h': Text file busy


In both git client (host and virtual) i have set longpaths to true.



If any information is needed, please ask.










share|improve this question
























  • Are you cloning the repo on Linux and Windows separately? Or you have a shared folder where you cloned it and Windows and Linux both use it ?

    – Chetan Ranpariya
    Mar 24 at 23:08











  • Exactly the second way, i have shared directory, cloned repo (via linux client). And just both system can use and modify this repository

    – Robert Pawlak
    Mar 24 at 23:16











  • That might be the issue as systems will find files being locked by other system. And that will not allow add it delete files to that share location. Not exactly same as yours but people have faced similar issues here and here

    – Chetan Ranpariya
    Mar 24 at 23:21






  • 1





    Possible duplicate of Git Symlinks in Windows, Add symlink file as file using Git on Windows, How to add symlinks to git repository on Windows?, etc.

    – jww
    Mar 25 at 1:25


















0















I have virtual box with installed arch linux. Host system is windows 10. I have mounted disc via virtual-box quest utills.
From VM level I clone repository inside shared windows/linux space. Clone is done with success.
But creating some files in working directory provide some errors:
(gcc repository)



error: unable to unlink old 'fixincludes/tests/base/ctype.h': Interrupted system call
error: unable to create file gcc/ada/libgnat/a-chacon.ads: File exists

error: unable to unlink old 'fixincludes/tests/base/sundev/vuid_event.h': Text file busy


In both git client (host and virtual) i have set longpaths to true.



If any information is needed, please ask.










share|improve this question
























  • Are you cloning the repo on Linux and Windows separately? Or you have a shared folder where you cloned it and Windows and Linux both use it ?

    – Chetan Ranpariya
    Mar 24 at 23:08











  • Exactly the second way, i have shared directory, cloned repo (via linux client). And just both system can use and modify this repository

    – Robert Pawlak
    Mar 24 at 23:16











  • That might be the issue as systems will find files being locked by other system. And that will not allow add it delete files to that share location. Not exactly same as yours but people have faced similar issues here and here

    – Chetan Ranpariya
    Mar 24 at 23:21






  • 1





    Possible duplicate of Git Symlinks in Windows, Add symlink file as file using Git on Windows, How to add symlinks to git repository on Windows?, etc.

    – jww
    Mar 25 at 1:25














0












0








0


1






I have virtual box with installed arch linux. Host system is windows 10. I have mounted disc via virtual-box quest utills.
From VM level I clone repository inside shared windows/linux space. Clone is done with success.
But creating some files in working directory provide some errors:
(gcc repository)



error: unable to unlink old 'fixincludes/tests/base/ctype.h': Interrupted system call
error: unable to create file gcc/ada/libgnat/a-chacon.ads: File exists

error: unable to unlink old 'fixincludes/tests/base/sundev/vuid_event.h': Text file busy


In both git client (host and virtual) i have set longpaths to true.



If any information is needed, please ask.










share|improve this question
















I have virtual box with installed arch linux. Host system is windows 10. I have mounted disc via virtual-box quest utills.
From VM level I clone repository inside shared windows/linux space. Clone is done with success.
But creating some files in working directory provide some errors:
(gcc repository)



error: unable to unlink old 'fixincludes/tests/base/ctype.h': Interrupted system call
error: unable to create file gcc/ada/libgnat/a-chacon.ads: File exists

error: unable to unlink old 'fixincludes/tests/base/sundev/vuid_event.h': Text file busy


In both git client (host and virtual) i have set longpaths to true.



If any information is needed, please ask.







linux windows git






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 1:24









jww

55.6k42244536




55.6k42244536










asked Mar 24 at 22:58









Robert PawlakRobert Pawlak

334219




334219












  • Are you cloning the repo on Linux and Windows separately? Or you have a shared folder where you cloned it and Windows and Linux both use it ?

    – Chetan Ranpariya
    Mar 24 at 23:08











  • Exactly the second way, i have shared directory, cloned repo (via linux client). And just both system can use and modify this repository

    – Robert Pawlak
    Mar 24 at 23:16











  • That might be the issue as systems will find files being locked by other system. And that will not allow add it delete files to that share location. Not exactly same as yours but people have faced similar issues here and here

    – Chetan Ranpariya
    Mar 24 at 23:21






  • 1





    Possible duplicate of Git Symlinks in Windows, Add symlink file as file using Git on Windows, How to add symlinks to git repository on Windows?, etc.

    – jww
    Mar 25 at 1:25


















  • Are you cloning the repo on Linux and Windows separately? Or you have a shared folder where you cloned it and Windows and Linux both use it ?

    – Chetan Ranpariya
    Mar 24 at 23:08











  • Exactly the second way, i have shared directory, cloned repo (via linux client). And just both system can use and modify this repository

    – Robert Pawlak
    Mar 24 at 23:16











  • That might be the issue as systems will find files being locked by other system. And that will not allow add it delete files to that share location. Not exactly same as yours but people have faced similar issues here and here

    – Chetan Ranpariya
    Mar 24 at 23:21






  • 1





    Possible duplicate of Git Symlinks in Windows, Add symlink file as file using Git on Windows, How to add symlinks to git repository on Windows?, etc.

    – jww
    Mar 25 at 1:25

















Are you cloning the repo on Linux and Windows separately? Or you have a shared folder where you cloned it and Windows and Linux both use it ?

– Chetan Ranpariya
Mar 24 at 23:08





Are you cloning the repo on Linux and Windows separately? Or you have a shared folder where you cloned it and Windows and Linux both use it ?

– Chetan Ranpariya
Mar 24 at 23:08













Exactly the second way, i have shared directory, cloned repo (via linux client). And just both system can use and modify this repository

– Robert Pawlak
Mar 24 at 23:16





Exactly the second way, i have shared directory, cloned repo (via linux client). And just both system can use and modify this repository

– Robert Pawlak
Mar 24 at 23:16













That might be the issue as systems will find files being locked by other system. And that will not allow add it delete files to that share location. Not exactly same as yours but people have faced similar issues here and here

– Chetan Ranpariya
Mar 24 at 23:21





That might be the issue as systems will find files being locked by other system. And that will not allow add it delete files to that share location. Not exactly same as yours but people have faced similar issues here and here

– Chetan Ranpariya
Mar 24 at 23:21




1




1





Possible duplicate of Git Symlinks in Windows, Add symlink file as file using Git on Windows, How to add symlinks to git repository on Windows?, etc.

– jww
Mar 25 at 1:25






Possible duplicate of Git Symlinks in Windows, Add symlink file as file using Git on Windows, How to add symlinks to git repository on Windows?, etc.

– jww
Mar 25 at 1:25













1 Answer
1






active

oldest

votes


















1














It isn't generally a good idea to work on the same non-bare repository (that is, using the same directory) between two different systems using a shared drive. Remote file systems, even systems like you're using with Virtualbox, don't tend to provide the richness of locking and functionality that Git wants to use, and this is especially true when you're sharing between Windows and Linux.



It's better to use a separate clone on Windows and Linux and use a shared bare repository that you can push and pull from on demand (and not at the same time). This will prevent the mandatory locking that Windows programs do on many files from interfering with your Linux checkout, which is part of what looks like is occurring here.






share|improve this answer

























  • “Separate clone”. - I know this is picky, but git terminology should be preferred when talking about git.

    – evolutionxbox
    Mar 24 at 23:33












  • Thanks. I edited the post to reflect that.

    – bk2204
    Mar 25 at 0:12











  • Thanks for the answer. I always use this way of work, Editing in windows editor, and building via ssh conected linux. The only change which was needed is just change EOL in git config. And now when i want clone gcc or linux official repo it occurs this strange issues. I think there must be some solution. Please note this, that during first checkout (when files are "spawn" in working directory) none of the files is modified by windows.

    – Robert Pawlak
    Mar 25 at 0:14











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55329391%2fhow-to-work-with-git-repo-between-linux-and-windows%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














It isn't generally a good idea to work on the same non-bare repository (that is, using the same directory) between two different systems using a shared drive. Remote file systems, even systems like you're using with Virtualbox, don't tend to provide the richness of locking and functionality that Git wants to use, and this is especially true when you're sharing between Windows and Linux.



It's better to use a separate clone on Windows and Linux and use a shared bare repository that you can push and pull from on demand (and not at the same time). This will prevent the mandatory locking that Windows programs do on many files from interfering with your Linux checkout, which is part of what looks like is occurring here.






share|improve this answer

























  • “Separate clone”. - I know this is picky, but git terminology should be preferred when talking about git.

    – evolutionxbox
    Mar 24 at 23:33












  • Thanks. I edited the post to reflect that.

    – bk2204
    Mar 25 at 0:12











  • Thanks for the answer. I always use this way of work, Editing in windows editor, and building via ssh conected linux. The only change which was needed is just change EOL in git config. And now when i want clone gcc or linux official repo it occurs this strange issues. I think there must be some solution. Please note this, that during first checkout (when files are "spawn" in working directory) none of the files is modified by windows.

    – Robert Pawlak
    Mar 25 at 0:14















1














It isn't generally a good idea to work on the same non-bare repository (that is, using the same directory) between two different systems using a shared drive. Remote file systems, even systems like you're using with Virtualbox, don't tend to provide the richness of locking and functionality that Git wants to use, and this is especially true when you're sharing between Windows and Linux.



It's better to use a separate clone on Windows and Linux and use a shared bare repository that you can push and pull from on demand (and not at the same time). This will prevent the mandatory locking that Windows programs do on many files from interfering with your Linux checkout, which is part of what looks like is occurring here.






share|improve this answer

























  • “Separate clone”. - I know this is picky, but git terminology should be preferred when talking about git.

    – evolutionxbox
    Mar 24 at 23:33












  • Thanks. I edited the post to reflect that.

    – bk2204
    Mar 25 at 0:12











  • Thanks for the answer. I always use this way of work, Editing in windows editor, and building via ssh conected linux. The only change which was needed is just change EOL in git config. And now when i want clone gcc or linux official repo it occurs this strange issues. I think there must be some solution. Please note this, that during first checkout (when files are "spawn" in working directory) none of the files is modified by windows.

    – Robert Pawlak
    Mar 25 at 0:14













1












1








1







It isn't generally a good idea to work on the same non-bare repository (that is, using the same directory) between two different systems using a shared drive. Remote file systems, even systems like you're using with Virtualbox, don't tend to provide the richness of locking and functionality that Git wants to use, and this is especially true when you're sharing between Windows and Linux.



It's better to use a separate clone on Windows and Linux and use a shared bare repository that you can push and pull from on demand (and not at the same time). This will prevent the mandatory locking that Windows programs do on many files from interfering with your Linux checkout, which is part of what looks like is occurring here.






share|improve this answer















It isn't generally a good idea to work on the same non-bare repository (that is, using the same directory) between two different systems using a shared drive. Remote file systems, even systems like you're using with Virtualbox, don't tend to provide the richness of locking and functionality that Git wants to use, and this is especially true when you're sharing between Windows and Linux.



It's better to use a separate clone on Windows and Linux and use a shared bare repository that you can push and pull from on demand (and not at the same time). This will prevent the mandatory locking that Windows programs do on many files from interfering with your Linux checkout, which is part of what looks like is occurring here.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 25 at 0:11

























answered Mar 24 at 23:30









bk2204bk2204

4,2841714




4,2841714












  • “Separate clone”. - I know this is picky, but git terminology should be preferred when talking about git.

    – evolutionxbox
    Mar 24 at 23:33












  • Thanks. I edited the post to reflect that.

    – bk2204
    Mar 25 at 0:12











  • Thanks for the answer. I always use this way of work, Editing in windows editor, and building via ssh conected linux. The only change which was needed is just change EOL in git config. And now when i want clone gcc or linux official repo it occurs this strange issues. I think there must be some solution. Please note this, that during first checkout (when files are "spawn" in working directory) none of the files is modified by windows.

    – Robert Pawlak
    Mar 25 at 0:14

















  • “Separate clone”. - I know this is picky, but git terminology should be preferred when talking about git.

    – evolutionxbox
    Mar 24 at 23:33












  • Thanks. I edited the post to reflect that.

    – bk2204
    Mar 25 at 0:12











  • Thanks for the answer. I always use this way of work, Editing in windows editor, and building via ssh conected linux. The only change which was needed is just change EOL in git config. And now when i want clone gcc or linux official repo it occurs this strange issues. I think there must be some solution. Please note this, that during first checkout (when files are "spawn" in working directory) none of the files is modified by windows.

    – Robert Pawlak
    Mar 25 at 0:14
















“Separate clone”. - I know this is picky, but git terminology should be preferred when talking about git.

– evolutionxbox
Mar 24 at 23:33






“Separate clone”. - I know this is picky, but git terminology should be preferred when talking about git.

– evolutionxbox
Mar 24 at 23:33














Thanks. I edited the post to reflect that.

– bk2204
Mar 25 at 0:12





Thanks. I edited the post to reflect that.

– bk2204
Mar 25 at 0:12













Thanks for the answer. I always use this way of work, Editing in windows editor, and building via ssh conected linux. The only change which was needed is just change EOL in git config. And now when i want clone gcc or linux official repo it occurs this strange issues. I think there must be some solution. Please note this, that during first checkout (when files are "spawn" in working directory) none of the files is modified by windows.

– Robert Pawlak
Mar 25 at 0:14





Thanks for the answer. I always use this way of work, Editing in windows editor, and building via ssh conected linux. The only change which was needed is just change EOL in git config. And now when i want clone gcc or linux official repo it occurs this strange issues. I think there must be some solution. Please note this, that during first checkout (when files are "spawn" in working directory) none of the files is modified by windows.

– Robert Pawlak
Mar 25 at 0:14



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55329391%2fhow-to-work-with-git-repo-between-linux-and-windows%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현