Skip to main content

Home/ Groups/ WikiTechie
Muhammad Al-Syrwan

How to set up your own private Git server on Linux | Bradley Wright - 0 views

  •  
    ssh myserver.com sudo apt-get update sudo apt-get install git-core …and that's it. Adding a user If you intend to share these repositories with any collaborators, at this point you'll either: Want to install something like Gitosis (outside the scope of this article, but this is a good, if old, tutorial); or Add a "shared" Git user. We'll be following the latter option. So, add a Git user: sudo adduser git Now you'll need to add your public key to the Git user's authorized_keys: sudo mkdir /home/git/.ssh sudo cp ~/.ssh/authorized_keys /home/git/.ssh/ sudo chown -R git:git /home/git/.ssh sudo chmod 700 !$ sudo chmod 600 /home/git/.ssh/* Now you'll be able to authenticate as the Git user via SSH. Test it out: ssh git@myserver.com Add your repositories If you were to not share the repositories, and just wanted to access them for yourself (like I did, since I have no collaborators), you'd do the following as yourself. Otherwise, do it as the Git user we added above. If using the Git user, log in as them: login git Now we can create our repositories: mkdir myrepo.git cd !$ git --bare init The last steps creates an empty repository. We're assuming you already have a local repository that you just want to push to a remote server. Repeat that last step for each remote Git repository you want. Log out of the server as the remaining operations will be completed on your local machine. Configure your development machine First, we add the remotes to your local machine. If you've already defined a remote named origin (for example, if you followed GitHub's instructions), you'll want to delete the remote first: git remote rm origin Now we can add our new remote: git remote add origin git@server.com:myrepo.git git push origin master And that's it. You'll probably also want to make sure you add a default merge and remote: git config branch.master.remote origin && git config branch.master.merge refs/heads/master And that's all. Now you
al-Amjad Tawfiq Isstaif

Open Data Kit - 0 views

  •  
    Open Data Kit (ODK) is a free and open-source set of tools which help organizations author, field, and manage mobile data collection solutions
Muhammad Al-Syrwan

Ruby on Rails Guides: Action Controller Overview - 0 views

  •  
    action controller
al-Amjad Tawfiq Isstaif

ruby on rails - How to get the current_user in a model observer? - Stack Overflow - 0 views

  •  
    " before_filter :set_current_user private def set_current_user User.current_user = #however you get the current user in your controllers end"
al-Amjad Tawfiq Isstaif

mettadore/acts_as_stream - 0 views

  •  
    Rails injectable Redis-backed activity stream system
al-Amjad Tawfiq Isstaif

Why I think Mongo is to Databases what Rails was to Frameworks // RailsTips by John Nun... - 0 views

  •  
    " I say that I now approach Mongo with the same kind of excitement I first felt using Rails."
al-Amjad Tawfiq Isstaif

rossta/seymour - 0 views

  •  
    This is an advanced activity feed management that we might need in the future
al-Amjad Tawfiq Isstaif

zilkey/active_model_listener - 0 views

  •  
    Simple, global ActiveRecord event observers, using a middleware architecture, that can easily be turned on and off. Designed for audit trails, activity feeds and other app-level event handlers
Muhammad Al-Syrwan

Issue #68: undefined method `namespace' · ctran/annotate_models - 0 views

  •  
    annotate gem solution
al-Amjad Tawfiq Isstaif

Miro community - Home - 1 views

  •  
    Easily create a video-based community
« First ‹ Previous 41 - 60 of 138 Next › Last »
Showing 20 items per page