web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Power Pages in VSCode ...
Power Pages
Suggested Answer

Power Pages in VSCode - does it overright GitHub Repository details?

(0) ShareShare
ReportReport
Posted on by 67
I am using Power Pages in VS Code with the Power Platform extension. All working well. 

Also, from inside VSCode i have a repo for the Power Pages site that I sync when i reach the end of a dev cycle. its only used for a point in time copy. 

However, i am finding that i keep having to set up github connectivity almost everytime i want to sycn (which isn't often). 
 
I think the issue maybe that when i download the site from Power Pages it over rights the git hub settings? i use several desktop / laptops, so i do download the site 'regularly' (more often than i sycn with git)
 
Anyone else found that??
Categories:
I have the same question (0)
  • Suggested answer
    rezarizvii Profile Picture
    112 on at
    Hi @JBC777,
     
    When you download/sync a Power Pages site, it can overwrite the .git folder or workspace metadata, especially if you’re pulling into the same directory. That breaks the existing Git linkage, so VS Code asks you to set it up again.
     

    How to avoid it

    Option 1: Separate folders

    • Folder A → Power Pages sync (source of truth)
    • Folder B → Git repo
    • Copy changes between them when needed
     

    Option 2: Protect .git

    • Make sure .git folder is not touched during sync
    • Avoid syncing into an already-initialized repo folder
     

    If this reply helped you in any way, please give it a Like 💜 and in case it resolved your issue, please mark it as the Verified Answer ✅.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 35 Most Valuable Professional

Last 30 days Overall leaderboard