We have been using GIT with gitolite(for authentication). We recently bought stash licenses and would like to use it. What are our best options.
I tried to setup our exisiting repos in Stash. But, I coudn't find option where I can add my current repositories to Stash. I also would like to transfer gitolite to Stash authentication and management.
can you please help me soon ?
I'm afraid we don't have anything that you can use at the moment. It would be possible to write a simple script that parses the gitolite file and uses our REST api to create users in Stash, imports the repositories and sets the relevant branch permissions.
You might also be interested in voting for the following:
Let me know if you have any specific questions, but other than that I'm sorry we don't have anything more concrete for you to use.
Thanks for quick answer. We would to use stash in following way
1) short term, replace our fisheye/crucible with stash. Now, I believe, I can do this without any issue. Right ? I can clone repositories into one project as admin and other users can start using it just like fisheye/crucible. Right ?
2) Long term, I want to replace my server A which is GIT and Gitolite server which stash for code management and administration for all the users. This is not possible at this point. Or I should say, no easy migration path, right ?
1. Yes and no. I'm curious how you're using Gitolite and Fisheye at the moment. Where do you users push to? Stash needs to be the central host, and if you push to gitolite then how does Stash get the changes? Sorry if I'm confused by this point.
The other thing to mention is that Stash has a different set of functionality than Fisheye/Crucible, are you aware of the differences?
2. It's definitely possible to use Stash for the code management, but unfortunately we don't have a one-click migration path from gitolite yet.
1) we have central GIT server which is managed by gitolite module. All users push the changes to that central server. We have created repos in Fisheye, So, users can browse the change set easily and create code reviews using crucile add on. So, Fisheye is just another consumer of that central repository hosted on different server. Hope, that clears the confusion.
"Stash needs to be central host". That's good validation. I read that and wanted to confirm. Yes, I understand that it has different functionality. Yesterday was the first time I used Stash after watching some videos and docs. Not sure if I am looking and reading at right set of documents.
2) Honestly. I can do that migration manually for each user. My point is, how do I switch my central host from Server A to Stash with all versioning etc preserved. Also After migration to stash as central host, will I have access to all the versioning info.
Does this clear your understanding of our setup ?
Cool. Good to hear we're on the same page.
So, when you say "versioning" do you mean the Git history? In which case that's the easy part and where Git is awesome. You just need to create repositories in Stash, and then 'push' from the canonical repositories (did you want more details?). You could even keep Server A (in _read only_ mode) for builds and users that haven't switched their Git URLs to point to Stash, and setup a cron job to fetch from Stash. But the important thing is that you can only modify/push to Git in one place, which is Stashin this case, otherwise things get very complicated.
Does that make sense?
Documentation on moving from existing central GIT to Stash. https://confluence.atlassian.com/display/STASH/Importing+code+from+an+existing+project#Importingcodefromanexistingproject-MirroranexistingGitrepository
Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...
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