Using git for deploy

I have a question.

Now in project we use git for automatically update testing server (deployment). There is fresh HEAD revision on hook when push to repository using Jenkins.

  • Developing & deploying Rails app from same machine
  • Keep different content of a particular file in a Git branch
  • Is it safe to run your site within a Git repository on your production server?
  • Configuring Hudson/Jenkins for staging and production
  • Use merge or rebase to maintain a deployment branch
  • Azure - deploying from Bitbucket
  • Now there is an Idea about using moving tags to point on deploy revision.
    Example git tag for-deploy, and move this tag to needed revision. By idea server should deploy revision marker for-deploy on each moving this tag using hook.

    What are you think about it?

  • push branch tarball to github with git
  • Git - Ignore files during merge
  • Not showing as a contributor on GitHub
  • Xcode workspace source control only working for first added project
  • How does one push from NTFS (desktop) to FAT32 (usb)?
  • msysgit vim cursorline is dark on my light background. how to set it to light or off
  • One Solution collect form web for “Using git for deploy”

    Tags generally shouldn’t change as they are intended to mark a specific commit. Instead, what you are describing is exactly what a branch is intended for. You can create a new deployment branch where you can merge commits to whenever you are ready for deployment. Then you just need to deploy the HEAD of that branch using something like

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