chandantul has asked for the wisdom of the Perl Monks concerning the following question:

Hello All, I have 4 perl scripts and I will need to push the same perl scripts in Bitbucket repositories. Do you have any example of the scripts that I can utilize the same or I will need to add some modules in my existing scripts? Please share any example of the scripts that will help me to push the scripts into Bitbucket repositories

Replies are listed 'Best First'.
Re: Push to Bitbucket repositaries
by haukex (Archbishop) on Dec 14, 2020 at 08:16 UTC
    I have 4 perl scripts and I will need to push the same perl scripts in Bitbucket repositories. Do you have any example of the scripts that I can utilize the same or I will need to add some modules in my existing scripts?

    See the "Synopsis" in my module IPC::Run3::Shell::CLIWrapper for one way (of many) to do this, by calling git from Perl.

Re: Push to Bitbucket repositaries
by perlfan (Parson) on Dec 14, 2020 at 19:38 UTC
    Git::Wrapper is a nice .. uh .. wrapper around git. And although there is no "script" ready to go, it's very easy to write your own using the module in a few lines. Couple that with an ssh key (and the proper repo URI), you'll be able to automate this process in no time.

      Can I create a separate function in my existing code or its better to keep the code outside of the existing code and execute it if there is code changes that will update to repo?

      I am interacting with Bit Bucket cloud hence I am facing issue with connection parameters in Git::Wrapper. Can you please let me know what should be m connection parameters in the scripts? I have been given the Bitbucket project URL and I have created a repository under the project in Bitbucket cloud. How I can push the code through Git::Wrapper?