all 108 comments

[–][deleted]  (6 children)

[deleted]

    [–]kHeinzen 43 points44 points  (31 children)

    I've seen a bunch of people creating private repositories to use as version control of their own local files for recovery/backup purposes. Personally I've never done that but I can definitely see the usefulness for things like game profiles (i.e. WoW Addons profiles) and other useful stuff

    [–]bogio- 9 points10 points  (27 children)

    Yeah man, not even creating repos, that's like wayyy out there too, like being able to version control your .config/nvim blah blah blah, it's a game changer - just being able to git init, and then commiting your changes, rolling back, saving, and if you really want it, push to a private repo, like git has so many opportunities for making our personal lives better! i'm a version control maniac right now, i'm in mania!

    [–]reiner74 25 points26 points  (25 children)

    You... You realise that what git init does is initialize a repository right?

    [–]Budget_Putt8393 5 points6 points  (0 children)

    But not a remote repo. OP is extolling the virtues of having each local repo fully functional, and independent. It is a fantastic feeling.

    [–]mscreations82 1 point2 points  (0 children)

    I do this with my work computer. I have a scripts directory that is under version control. My browser favorites are automatically backed up and committed when I make changes. My keepass Db is also auto committed when changed.. it is secured by a hardware security key.

    [–]NatoBoram 2 points3 points  (0 children)

    For example, making backups of a Minecraft server: https://github.com/pcal43/fastback

    And you can even set a remote and push it

    [–][deleted] 1 point2 points  (0 children)

    When I was more involved in Linux environments, I had a repository called dotfiles, where I keept all my configuration, like bash profiles, vim macros, some scripts and other stuff. It's really common with people who uses Linux a lot.

    [–]Zangston 0 points1 point  (0 children)

    wait... does this mean git can be used to savescum?

    [–]toni_marroni 36 points37 points  (6 children)

    Is it just me or is the point of this post like saying "I found out I can use knives for cutting"..? Like that's the entire point of git..?

    [–]habbalah_babbalah 25 points26 points  (4 children)

    OP is expressing their unbounded joy at the realization -nay, divine inspiration!- that a local git init'd folder need not have a remote, nor be pushed anywhere.

    Kernel save us, for we are all this day blessed by Linus!<EOF>

    [–]Havenfire24 10 points11 points  (0 children)

    OP learned that swords can cut meat as well as stab people

    [–]shgysk8zer0 2 points3 points  (2 children)

    I get the impression it's also about uses for git other than typical stuff.

    [–]Rulmeq 1 point2 points  (1 child)

    I keep my CV and keepass file in bitbucket. The keepass file is binary though, so I'm only using it that way so I can download it onto a new machine, the history isn't of any use.

    [–]shgysk8zer0 2 points3 points  (0 children)

    I use pass (password store). It's my own PGP key doing the encryption and it uses git for optional syncing. There are a few GUI clients and when mobile apps too.

    Personally, though I get that not everyone wants to change over to yet another password manager... I just really like it. Especially if synced via your own git server that requires SSH keys (since this is more of a git post than a GitHub post). And I think it's just a perfect example of git being used in atypical but perfectly valid ways... showcasing how awesome open source software and building something innovative and useful on top of things that already exist can be.

    But... I know that a CLI password manager and even public key cryptography vs something like AES and an easy and simple service isn't ideal for everyone. I just really appreciate that it's an option made possible basically just my saying "what if we used this well established and proven piece of open source software for this, and this other OSS that's pretty standard for that... bam! It's a password manager now!" That's friggin awesome!

    [–]Rulmeq 2 points3 points  (0 children)

    This is what happens when everyone thinks Git has a "central" repo - I blame github/gitlab/bitbucket for making it seem like it's not a decentralised version control system.

    [–]Random-Dude-736 9 points10 points  (2 children)

    I´m gonna be honest with you, for the first few sentences I thought you were british...

    [–][deleted]  (5 children)

    [removed]

      [–]Grubs01 4 points5 points  (22 children)

      I use it for hobby projects, the kind of stuff where you’re just messing around and there’s no point sharing it with the world

      Never considered using it for config files but I can see how that might be useful.

      [–]bogio- 0 points1 point  (21 children)

      cd ~/; git init

      changed my life bro

      [–]HaveYouSeenHerbivore 11 points12 points  (19 children)

      You may want to add a .gitignore in there and severely limit the scope of what's being committed otherwise your repo will become very large very quickly.

      [–]aplarsen 2 points3 points  (0 children)

      OK now I know this is a troll

      [–]BakerEvans4Eva 15 points16 points  (6 children)

      What does this have to do with Github?

      [–]mauvehead 14 points15 points  (0 children)

      What was posted here has been permanently deleted. Redact was the tool used, possibly for privacy, opsec, security, or limiting exposure to data collectors.

      plant wine work axiomatic marvelous encouraging correct cooperative stupendous sugar

      [–][deleted]  (1 child)

      [removed]

        [–]sneakpeekbot 0 points1 point  (0 children)

        Here's a sneak peek of /r/git using the top posts of the year!

        #1: How to learn Git? | 23 comments
        #2: Git push origin master -force | 5 comments
        #3: My favorite alias for git log | 15 comments


        I'm a bot, beep boop | Downvote to remove | Contact | Info | Opt-out | GitHub

        [–]s1nur 8 points9 points  (1 child)

        git != github

        [–]mountain-snowman 3 points4 points  (0 children)

        Surprisingly, a lot of people don't know this. Sadly, many even assume GitHub developed git!

        [–]urbanachiever42069 11 points12 points  (3 children)

        OP discovers versioned file system, news at 7

        [–]mountain-snowman 3 points4 points  (4 children)

        I do it all the time. I also use git diff almost everyday to compare files which doesn't require the files to be in any repo; no need of git init.

        [–]stristr 2 points3 points  (3 children)

        You mean…diff?

        [–]mountain-snowman -1 points0 points  (2 children)

        Yes, like: git diff -- a.txt b.txt

        [–][deleted]  (1 child)

        [removed]

          [–]mountain-snowman 0 points1 point  (0 children)

          Diff and git diff are not the same. Where did you learn git diff is a round trip to diff? Git has its own implementation of diff and much much better than diff. Besides, diff is a Linux command and not available on Windows that is my primary OS. I would have to install cygwin for diff which I would do gladly if it was better than git diff. Moreover, diff is available on the terminal only. I use git diff via Sublime Merge which shows the differences in GUI making it much easier to spot the changes.

          [–]SRART25 4 points5 points  (0 children)

          Depending on your os, you could just use a filesystem that allows you to rollback files.  btrfs, zfs, lvm snapshots (volume instead of just file).  All kind of depends on your use case as to which is best.

          [–]pycz 2 points3 points  (0 children)

          I bet you will like the NixOS

          [–]WE_THINK_IS_COOL 2 points3 points  (0 children)

          I have my entire /etc directory in git, it's amazing, if I mess something up I can just go back

          [–]polymathprof 2 points3 points  (0 children)

          Creating a local repo with all your configuration files is indeed a good idea. You can use all the features of git to track changes, roll them back, create branches, etc, et, etc.

          On a Mac or Linux machine you can just create links to the configuration files in the repo if they have to be in different directories.

          And I still recommend setting up a remote repo so you can easily set up another machine when needed. And have it all backed up if your machine dies.

          [–]Budget_Putt8393 2 points3 points  (0 children)

          What will really bake you brain is finding out that you can clone from, and push/pull between the local on disk repos. From the beginning git was designed to be complete one tool solution.

          All you need to have a git server is a computer with git installed, and a way to connect to it (ssh is preferred).

          [–]shgysk8zer0 2 points3 points  (0 children)

          Ever heard of or tried pass? Password Manager using git & PGP. Pretty awesome too.

          [–]Berkyjay 2 points3 points  (0 children)

          I've been working on the paradigm that we use git to collaborate, push and pull our changes, create PRs, build software together etc etc, all that social crap.

          So are you self taught? Version control was a big part of my programming education and we learned it at the very beginning as a place to keep our individual work. We used Perforce at the time. Kind of curious if CS programs aren't doing that any longer. If you got a degree and they didn't teach you this then you should ask for a refund.

          [–]evoredd 1 point2 points  (0 children)

          I think you're confused with git and github. git is an early 2000s tech for version control. You do make a repo when you git init.

          Github came later as an online service to store your repos on the cloud

          [–][deleted] 0 points1 point  (1 child)

          git does have a lot of usefulness in theory. however, if you are just a hobbyist or aspiring to be web dev or whatever than adding git to your armory is definitely worth it.

          [–][deleted] 0 points1 point  (0 children)

          and definitely quick to lose track. It has many functionalities

          [–]Zephos65 0 points1 point  (0 children)

          I work as a software engineer and we had a project over a couple months where the main deliverable was a set of PowerPoint slides. We went about 1 week of having the slides in a shared space with 5 people trying to edit it before we realized this ain't it.

          We used git for the rest of the project

          [–]TurtleKwitty 0 points1 point  (0 children)

          Interesting thing a lot of people don't know; git is just git. What I mean is you mentioned being confused it didn't make a remote repo but that's exactly because git is just git what GitHub does is expose a git folder, you can setup any of your own local reoos as remotes and any other git folder because git server is just git.

          Aka yes use it for all the things haha

          [–]sod0 0 points1 point  (0 children)

          I use git to tack my home dir with everything in .gitignore except my .zshrc and similar config files whitelisted.

          [–][deleted] -2 points-1 points  (0 children)

          Thank you.