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 6924437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:39:46+00:00 2026-05-27T10:39:46+00:00

I guess this is a best-practice question: We have a test server, a git

  • 0

I guess this is a best-practice question:

We have a test server, a git repository and several workstations.
When we do browser tests we work directly on the test server.
So whoever does the browser tests, he/she must be able to commit changes from the test server to the repository.
Problem is: the git remote (on the test server) specifies a single user for pulling/pushing from/to the repo (in .git/config). Although each team member has a ssh user for the repo.

Question is: how can each user make use of his/her own ssh access for git pulling/pushing?

  • 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-05-27T10:39:46+00:00Added an answer on May 27, 2026 at 10:39 am

    Try specifying git repo url without username in the clone on the test server (you may change it in config or just clone anew). It will make git use default ssh user name for the host in that url.

    Depending on your setup, you may need to additionally modify ~/.ssh/config for each user.

    Update

    If everyone logs in with the same single user on your test server (a setup that I would not recommend), then it looks like that you have to hack one way or another.

    One possible way to do that is this (I did not try it):

    If you worry about user.name and user.email, allow test server user to access master git repo and force each user to set GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL (and, maybe, some others) environment variables after login.

    It would make sense to do that in some script, just not in .bashrc or similar, for obvious reasons.

    To protect yourself from forgetful users, you may want to set up pre-commit hook in git clone where users do their commits to check if the script was called (via environment variable, for example). Alternatively, set up post-receive script on the master git repo, and check there that user credentials in the pushed commits are not that of test server user. In that case users would have to rewrite history to fix commit authors.

    If that is not enough, please share more details.

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

Sidebar

Related Questions

Okay guess this question looks a lot like: What is the best way to
Warning: This question has been heavily edited. I tried my best to guess the
I guess this is kind of an odd question but I have tried setting
This is a question about best practices i guess but it applies directly to
This is an efficiency/best practice question. Hoping to receive some feed back on performance.
I guess this question falls under best practices for PGP keys. First a very
I guess this is a best practices question. I'm asking as someone new to
This is again, I guess, a 'best practices' question because i can think of
I guess this is a simple question. I need to do something like this:
I guess this is a continuation of the last question I asked: bulk insert

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.