Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8543037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:12:31+00:00 2026-06-11T12:12:31+00:00

I have a repository for project which is on Bitbucket. I clone the repo

  • 0

I have a repository for project which is on Bitbucket. I clone the repo to my local PC to work on it. Then I push back to Bitbucket, and then I connect with putty to my server and call

git pull

And pull the changes to the live server. I never push from my server. Everything works fine like this, but its not very convenient to connect through putty to server in order to pull. I made small script “git_pull_script.sh” in where is something like:

git reset --hard
git clean -f
git pull
chown -f -R tdadmin *
...

Nothing problematic there. If I run the script on server

bash /home/tdadmin/git_pull_script.sh

Everything goes well and does what I need. Just to clarify, git_pull_script has set owner and group tdadmin.

Now in order to make it simpler for me, I wrote this tiny php script.

<?php
exec('bash /home/tdadmin/git_pull_script.sh', $output);
print_r($output);

which I think should do the work. So I could simply call http://tddomain.com/pullscript.php

Unfortunately that does not work. What did I do wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:12:33+00:00Added an answer on June 11, 2026 at 12:12 pm

    The problem was in the file system rights. Even though have changed all permissions, “.git” repository folder stayed with root owner and group. Once I changed that, everything works just fine

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GIT repository on bitbucket, which I want my Jenkins Server to
I have a project which uses a large library residing in its own repository.
I have a project that I want to push to a Mercurial repository on
I have a remote project which I use for my work; this is on
I have a personal project which is stored in an svn repository in my
I have a django project sitting in a bitbucket repository. Is it possible to
I have a project which uses TCP/IP communication to communicate with a server. For
We have: Remote repository with some project. Several remote repositories, which I want to
I have an existing Xcode (4.3) project which will automatically always create a local
I have some local changes to an open source project which uses Subversion as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.