Using git to just monitor changes on a webserver

I am tasked with monitoring the changes made to the source files of a website. I am not developing the website, just watching it. I am a firm believer in using version control, and am a fan of git, but the developer who is actually maintaining the site is not, and I have decided it is better to let him continue to work however he wants (don’t ask). I do not want to have to give him any instructions whatsoever (except possibly telling him that I am adding files or directories that he can ignore).

I consider myself an intermediate-level user of git, so I want to run this by an expert or two.

  • How to ignore obj folder using Git under MS Windows
  • What should I do when I get “TortoiseMerge cannot be used without a base”?
  • Push existing project into Github
  • Is git only good for text files/source code?
  • Jenkins server suddenly erroring with “Unknown SSL protocol error in connection to github.com:-9805” when doing a `git remote update`
  • Only use a proxy for certain git urls/domains?
  • I am thinking I can install git on the (Linux) server, and then ask for status, and do commits, via SSH. Will this work without jeopardizing the normal operation of the web server?

  • How to generate a git diff (patch) of a mode change to a binary file?
  • Adding to git staging means what?
  • How to manage a project on GitHub that has an external git dependency not stored on GitHub
  • git rebase failing due to whitespace error
  • git-svn commits to wrong branch / how to merge svn branch via git-svn
  • How do I update my forked repo using SourceTree?
  • One Solution collect form web for “Using git to just monitor changes on a webserver”

    Yes, using Git on a server should not interfere with the normal operation of the server (as mentioned in the comments, doing this on a production server is dodgy but I’ll leave that to one side.)

    Note that using Git normally will create a .git directory at the root of whatever you’re tracking. If that is your web server root directory, you might want to consider whether this is a risk as far as external access to the contents of the .git directory (depending on your server setup, this may or may not be a concern).

    If you want to create the .git directory somewhere else outside your working tree, see the GIT_DIR environment variable.

    Git Baby is a git and github fan, let's start git clone.