Forum Discussion

p_da's avatar
p_da
Helper I
1 year ago
Solved

Git integration

Hello Fabricators,

I am currently setting up a Fabric workspace with git integration. I am not a expert in git, so I have a question. Is it possible to add to the .gitignore file certains artifacts that I want to not commit ? For example, I have a dev workspace where I will have some test artifacts, what I want is, when commiting the changes in the workspace, I want to avoid those test artifacts to be cmommited. 

 

Thanks

8 Replies

  • v-nmadadi-msft's avatar
    v-nmadadi-msft
    Community Support

    Hi p_da ,

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

    Thank you.

  • My advice tends to be to ignore the .gitgnore. For your scenario, I would recommend looking to use the branch out to new workspace feature to create Feature branches/workspaces and then do a pull request for only the items you want to commit back to your Dev workspace instead.

     

    I hope this helps?

  • v-nmadadi-msft's avatar
    v-nmadadi-msft
    Community Support

    Hi p_da  ,
    Thanks for reaching out to the Microsoft fabric community forum.

    By setting up the .gitignore file correctly, you can avoid committing unnecessary test artifacts while continuing to manage the rest of your workspace efficiently.
    But please check out deployment pipelines this may be more suited for your use case.
    Overview of Fabric deployment pipelines - Microsoft Fabric | Microsoft Learn
    Follow the below link to selectively deploy content to different stage
    Fabric Application lifecycle management (ALM) deployment pipelines deploy content - Microsoft Fabric | Microsoft Learn
    some further reading on deployment pipeline
    The Microsoft Fabric deployment pipelines process - Microsoft Fabric | Microsoft Learn

     

    Did I answer your question? Mark my post as a solution, this will help others!

    If my response(s) assisted you in any way, don't forget to give "Kudos"

    Thanks and Regards

    • p_da's avatar
      p_da
      Helper I

      Thanks. It seems that the .gitignore file do not work in Microsoft Fabric. Even setting it up, it do not take effect in Microsoft Fabric

  • v-nmadadi-msft's avatar
    v-nmadadi-msft
    Community Support

    Hi p_da 

    I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thank you.

  • v-nmadadi-msft's avatar
    v-nmadadi-msft
    Community Support

    Hi @MattSB 

    I wanted to confirm if the solutions provided were helpful and resolved your concerns. If you have any further questions or issues, please feel free to reach out to us, also if this post helps, then please consider "Accept it as a solution" to help the other members find it more quickly.

     


    Thank you.