I'm currently evaluating Stash for our company because we want to try git and I heard a lot of good things about Stash. We are currently using SVN for a couple web projects but we are not 100 percent lucky with it because there are some things which would definitely work better with git.
After a few hours working with git and Stash it looks like it would work pretty well for us. There's one thing I don't understand though. This might not be a problem specific with Stash but with git in general. I configured Stash to sync with our Active Directory and as soon as I want to push or pull from a repository I have to enter my AD credentials. That works great. After pulling a repository from Stash I can make each commit with a different username and email address. After pushing this repository back to Stash, all these usernames are shown up in the log. Now I'm wondering if there's any change to force all users using their own Active Directory username?
Thanks for your help!
You've discovered one of the tradeoffs with Git and DVCS in general.
Depending on how you are using Git this restricting pushes may not work quite how you expect. If you're making single commits and pushing to Stash then everything will be fine. However, if hyptothetically someone pulls from another author (from a fork say), and then decides to push they will be denied. The only option at that point is to get the other person to push first or rewrite history (neither of which is ideal). It's complicated...
All that said, you might be interested in the following plugin. :)
The other option would be to require users have a pre-commit hook localy, but that comes with it's own set of problems (ie you can bypass it fairly easily).
I hope that answers your question?
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs