Is it possible for git to ignore everything git-related and simply add the complete working tree? ...

Is there a kind of relay only consumes power when switching?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

How does Python know the values already stored in its memory?

What is this clumpy 20-30cm high yellow-flowered plant?

Disembodied hand growing fangs

How would a mousetrap for use in space work?

Is there any word for a place full of confusion?

What is the appropriate index architecture when forced to implement IsDeleted (soft deletes)?

Why does the remaining Rebel fleet at the end of Rogue One seem dramatically larger than the one in A New Hope?

How fail-safe is nr as stop bytes?

Is a ledger board required if the side of my house is wood?

Why wasn't DOSKEY integrated with COMMAND.COM?

Trademark violation for app?

Most bit efficient text communication method?

How could we fake a moon landing now?

Find 108 by using 3,4,6

Performance gap between vector<bool> and array

ArcGIS Pro Python arcpy.CreatePersonalGDB_management

Can anything be seen from the center of the Boötes void? How dark would it be?

Is grep documentation about ignoring case wrong, since it doesn't ignore case in filenames?

Project Euler #1 in C++

How does light 'choose' between wave and particle behaviour?

What is "gratricide"?

What initially awakened the Balrog?



Is it possible for git to ignore everything git-related and simply add the complete working tree?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Workflow for using version control with automated backup/syncHow can I recreate my git directory and working tree?How to install Ultisnips with Snippets on Linux?Using shared git working area on multiple hostsSpecify a default action for git addgit annex, how to add git-sub directoriesMaking git check the working directory for integrityPublic version control systems (e.g. Github, SVN) as file backup/cloud storage?Differences between git add and git stage?git add . command not working





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







0















So I was thinking of switching my personal data backup strategy from rsync to git. For this, I would like to simply initialize my personal folder as a repository, and regular backups would simply be new commits. However, all my 'real' git repositories (of software projects etc) are inside my personal folder, so git warns me of embedded git repositories and asks me to add a submodule instead (even when using --force). I would like to tell my top repository to treat everything underneath it simply as files and add as is, with no interpretation (ideally even ignoring all .gitignore files in subdirectories1). Basically, I want to make sure that the content of this top repository is identical with my complete user folder. Is this possible? Is this a bad idea?



[1] Not "ignore" as in "not track the file itself" of course, but meta-ignore as in "do not interpret it as a file relevant for the git process"










share|improve this question























  • Why aren't you adding them as submodules as Git is telling you to?

    – kba
    11 hours ago











  • I don't think this is a good idea. Git performance degrades with the number of files and commits; at some point your backup will be unusable. You'll always carry around everything, or you have to prune files in a very weird way. Not even mentioning large files (for which LFS exists, but it adds complexity). Is there any particular reason you need Git and not an actual backup solution (Borg backup comes to mind).

    – slhck
    10 hours ago













  • Well, my reason was mostly because git is familiar, easy to use and so popular that it'll always be available. But I'll give borg a look, thanks!

    – Krateng
    7 hours ago


















0















So I was thinking of switching my personal data backup strategy from rsync to git. For this, I would like to simply initialize my personal folder as a repository, and regular backups would simply be new commits. However, all my 'real' git repositories (of software projects etc) are inside my personal folder, so git warns me of embedded git repositories and asks me to add a submodule instead (even when using --force). I would like to tell my top repository to treat everything underneath it simply as files and add as is, with no interpretation (ideally even ignoring all .gitignore files in subdirectories1). Basically, I want to make sure that the content of this top repository is identical with my complete user folder. Is this possible? Is this a bad idea?



[1] Not "ignore" as in "not track the file itself" of course, but meta-ignore as in "do not interpret it as a file relevant for the git process"










share|improve this question























  • Why aren't you adding them as submodules as Git is telling you to?

    – kba
    11 hours ago











  • I don't think this is a good idea. Git performance degrades with the number of files and commits; at some point your backup will be unusable. You'll always carry around everything, or you have to prune files in a very weird way. Not even mentioning large files (for which LFS exists, but it adds complexity). Is there any particular reason you need Git and not an actual backup solution (Borg backup comes to mind).

    – slhck
    10 hours ago













  • Well, my reason was mostly because git is familiar, easy to use and so popular that it'll always be available. But I'll give borg a look, thanks!

    – Krateng
    7 hours ago














0












0








0








So I was thinking of switching my personal data backup strategy from rsync to git. For this, I would like to simply initialize my personal folder as a repository, and regular backups would simply be new commits. However, all my 'real' git repositories (of software projects etc) are inside my personal folder, so git warns me of embedded git repositories and asks me to add a submodule instead (even when using --force). I would like to tell my top repository to treat everything underneath it simply as files and add as is, with no interpretation (ideally even ignoring all .gitignore files in subdirectories1). Basically, I want to make sure that the content of this top repository is identical with my complete user folder. Is this possible? Is this a bad idea?



[1] Not "ignore" as in "not track the file itself" of course, but meta-ignore as in "do not interpret it as a file relevant for the git process"










share|improve this question














So I was thinking of switching my personal data backup strategy from rsync to git. For this, I would like to simply initialize my personal folder as a repository, and regular backups would simply be new commits. However, all my 'real' git repositories (of software projects etc) are inside my personal folder, so git warns me of embedded git repositories and asks me to add a submodule instead (even when using --force). I would like to tell my top repository to treat everything underneath it simply as files and add as is, with no interpretation (ideally even ignoring all .gitignore files in subdirectories1). Basically, I want to make sure that the content of this top repository is identical with my complete user folder. Is this possible? Is this a bad idea?



[1] Not "ignore" as in "not track the file itself" of course, but meta-ignore as in "do not interpret it as a file relevant for the git process"







backup git






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 11 hours ago









KratengKrateng

1013




1013













  • Why aren't you adding them as submodules as Git is telling you to?

    – kba
    11 hours ago











  • I don't think this is a good idea. Git performance degrades with the number of files and commits; at some point your backup will be unusable. You'll always carry around everything, or you have to prune files in a very weird way. Not even mentioning large files (for which LFS exists, but it adds complexity). Is there any particular reason you need Git and not an actual backup solution (Borg backup comes to mind).

    – slhck
    10 hours ago













  • Well, my reason was mostly because git is familiar, easy to use and so popular that it'll always be available. But I'll give borg a look, thanks!

    – Krateng
    7 hours ago



















  • Why aren't you adding them as submodules as Git is telling you to?

    – kba
    11 hours ago











  • I don't think this is a good idea. Git performance degrades with the number of files and commits; at some point your backup will be unusable. You'll always carry around everything, or you have to prune files in a very weird way. Not even mentioning large files (for which LFS exists, but it adds complexity). Is there any particular reason you need Git and not an actual backup solution (Borg backup comes to mind).

    – slhck
    10 hours ago













  • Well, my reason was mostly because git is familiar, easy to use and so popular that it'll always be available. But I'll give borg a look, thanks!

    – Krateng
    7 hours ago

















Why aren't you adding them as submodules as Git is telling you to?

– kba
11 hours ago





Why aren't you adding them as submodules as Git is telling you to?

– kba
11 hours ago













I don't think this is a good idea. Git performance degrades with the number of files and commits; at some point your backup will be unusable. You'll always carry around everything, or you have to prune files in a very weird way. Not even mentioning large files (for which LFS exists, but it adds complexity). Is there any particular reason you need Git and not an actual backup solution (Borg backup comes to mind).

– slhck
10 hours ago







I don't think this is a good idea. Git performance degrades with the number of files and commits; at some point your backup will be unusable. You'll always carry around everything, or you have to prune files in a very weird way. Not even mentioning large files (for which LFS exists, but it adds complexity). Is there any particular reason you need Git and not an actual backup solution (Borg backup comes to mind).

– slhck
10 hours ago















Well, my reason was mostly because git is familiar, easy to use and so popular that it'll always be available. But I'll give borg a look, thanks!

– Krateng
7 hours ago





Well, my reason was mostly because git is familiar, easy to use and so popular that it'll always be available. But I'll give borg a look, thanks!

– Krateng
7 hours ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1427084%2fis-it-possible-for-git-to-ignore-everything-git-related-and-simply-add-the-compl%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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%2fsuperuser.com%2fquestions%2f1427084%2fis-it-possible-for-git-to-ignore-everything-git-related-and-simply-add-the-compl%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

Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...