Git Product home page Git Product logo

home_dirs's Introduction

Version Control your Home Directories

The reason I have created this repository is, that I got really tired of making all my home directories on different linux distributions.

The master branch contains only the things which I use on every distribution. Each Other branches contain the things which I use on that distro. This way I just need to checkout that branch if I get a plain new machine.

Getting started

When you get a new plain home directory somewhere just clone this repository out and move everything to your home directory's root folder.

As of the fact, that it's a plain directory you even don't have your ssh keys generated. I will use id_rsa now.

To Generate one:

ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa

If you have an ssh key somewhere, just copy it to the right place, rewriting the id_rsa and id_rsa.pub files. The .gitignore contains the rsa exceptions, so you don't need to be worried about accidentally adding them to version control system of yours.

Do not forget to add the right permissions to the folders.

chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub

After your id_rsa.pub file has been added to your github account, then you are able to clone the repo out.

From now on please call the bring up script from your terminal.

curl -S https://raw.githubusercontent.com/hajnalmt/home_dirs/master/bring_up_my_shell.sh | bash

Nice to know

I use vim as my default editor, so on the machine there should be vim and ssh installed. The repo contains a .vimrc, to have something to edit the commit files.

Also I like to config my global git settings immediately.

git config --global user.name "Your Name"
git config --global user.email [email protected]
git config --global core.editor vim
git config --global core.autocrlf false

It can happen that you have cloned your repository via HTTPS, I recommend using SSH instead. You can check the connection with the command:

And if maybe you have used HTTPS switch to SSH with:

git remote remove origin
git remote add origin [email protected]:hajnalmt/home_dirs.git
git branch --set-upstream-to origin/master

Good Luck!

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

home_dirs's People

Contributors

hajnalmt avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.