Microsoft Dynamics 365 Business Central Code History

repository·master·Indexed 19 days ago

https://github.com/stefanmaron/msdyn365bc.code.history

A repository of historical versions of Microsoft Dynamics 365 Business Central Apps, organized by country and version for rapid code comparison. Includes Base App code in w1 branches and localized code in country-specific branches.

Tokens
719
Snippets
5
Records
7
Agent score
17%

What's inside msdyn365bc.code.history

  1. Access Business Central Code by Branch

    master

    The repository contains all versions of Business Central Apps, organized by country and major version. Each country-major version has its own separate branch.

    • Base App Code: Most code can be found in branches starting with w1.
    • Localized Base App: To view country-specific localized code, check out branches named after the country code (e.g., DE for Germany).
  2. Add additional branches to a single-branch clone

    master

    If you have already performed a single-branch clone and need to add more branches without re-cloning the whole repository, use git remote set-branches followed by a git fetch.

    git remote set-branches --add origin de-24
    git remote set-branches --add origin de-23
    git fetch
  3. Perform a shallow clone to reduce repository size

    master

    To minimize local storage, use the --depth parameter to fetch only the most recent commits. A depth of 1 fetches only the latest commit. Note that using --depth implies --single-branch automatically.

    git clone -b w1-24 --depth 1 https://github.com/StefanMaron/MSDyn365BC.Code.History
  4. Remove tracking branches from a partial clone

    master

    Removing branches from a single-branch clone requires two steps:

    1. Edit Configuration: Manually edit the .git/config file and remove the unwanted branches from the [remote "origin"] section.
    2. Delete Local References: Delete the remote-tracking branches and any local copies you have checked out.

    Example configuration snippet (.git/config):

    [remote "origin"]
    	url = https://github.com/StefanMaron/MSDyn365BC.Code.History
    	fetch = +refs/heads/w1-23:refs/remotes/origin/w1-23
    	fetch = +refs/heads/de-24:refs/remotes/origin/de-24
    	fetch = +refs/heads/us-*:refs/remotes/origin/us-*

    Cleanup commands:

    # Delete remote-tracking branches
    git branch -d -r origin/us-23
    
    # Delete local branches if they were checked out
    git branch -D us-23