Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank you! Please let me know if there are any other topics you would like to see covered. =]
Hi! this only works if you are running certain versions and set ups. The command
root@nova-controller:~# apt-get install git -y Reading package lists… Done Building dependency tree Reading state information… Done Package git is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package ‘git’ has no installation candidate
That would depend on what repos you are contacting to install packages but it should be supported, have you made any repo changes for apt?
git config --list does not work,it shows an error fatal: bad config file line 2 in /root/.gitconfig what to do now…?
In a user’s home directory the .gitconfig file is the user’s specific config variables.
You should review that file and see if you have any errors in it as whenever you run git as root that file will be referenced.
Also depending on how your application is setup you may want to consider running all of your git repos under another user who is not root for security. In that case the /root/.gitconfig would not be referenced.
How about a post commit hook, so when after I push a commit code to git repo, it will auto upload php files to the lamp/web server which is also hosted by digital ocean. Hope you will have a tutorial for this. I am a newbie.
You can set something up like that, but it kind of breaks the convention behind git, which is meant to commit changes to the repo and then delpoy the code separately.
You can use something like capistrano to automate the deployment of your git code after you have updated. This way you can do multiple commits and work with other collaborators without having to worry that each most recent commit automatically gets deployed as this can be error prone, by deploying code that hasn’t yet been thoroughly tested.