This User Guide is limited to the installation of Git and Gitweb from the Control Panel on your eApps Hosting service, and is not intended as a Git tutorial. If you need assistance installing or configuring Git or Gitweb on your eApps Hosting service, please contact eApps Support. If you need assistance coming up to speed with Git, or if you have questions on how to use Git, please consult the official documentation or one of the many tutorials available online. See the Links to other information section for examples. |
All of the following must be done from the command line of the VPS while logged in via SSH, as the root user. See the SSH User Guide for more information if necessary. |
[root@example]# cd /opt/git [root@example git]# mkdir projectname [root@example git]# cd projectname [root@example projectname]# git init [root@example projectname]# Initialized empty Git repository in /opt/git/projectname/.git/ |
[root@example projectname]# git add . (the dot is part of the command – this adds the files to git) [root@example projectname]# git commit -m “initial commit” |
git clone ssh://user@example.com/opt/git/projectname |
git push ssh://user@example.com/opt/git/projectname |
[root@example ~]# htpasswd -m /var/www/.git.pwd user_name New password: passwd Re-type new password: passwd Updating password for user user_name |
Due to the large number of available Git clients, it is not possible for eApps to offer support for anything other than the built-in Gitweb program. |