### Convert Shallow Clone to Full Source: https://github.com/stefanmaron/msdyn365bc.code.history/blob/master/README.md Converts a shallow Git clone into a complete clone by fetching all missing history. This command retrieves all commits, making the local repository a full copy. ```git git fetch --unshallow ``` -------------------------------- ### Add Branches with Wildcard Source: https://github.com/stefanmaron/msdyn365bc.code.history/blob/master/README.md Adds tracking for multiple branches using a wildcard pattern. This allows fetching all branches matching a pattern, such as 'us-*', into the local repository efficiently. ```git git remote set-branches --add origin us-* git fetch ``` -------------------------------- ### Shallow Clone Latest Commit Source: https://github.com/stefanmaron/msdyn365bc.code.history/blob/master/README.md Creates a shallow clone of the repository, fetching only the most recent commit. This significantly reduces the repository size and download time by ignoring historical data. ```git git clone -b w1-24 --depth 1 https://github.com/StefanMaron/MSDyn365BC.Code.History ``` -------------------------------- ### Clone Specific Branch Source: https://github.com/stefanmaron/msdyn365bc.code.history/blob/master/README.md Clones a specific branch from the repository using Git. This command is useful for downloading only the code for a particular version, like 'w1-24', reducing download time and disk space. ```git git clone -b w1-24 --single-branch https://github.com/StefanMaron/MSDyn365BC.Code.History ``` -------------------------------- ### Add Additional Branches Source: https://github.com/stefanmaron/msdyn365bc.code.history/blob/master/README.md Adds tracking for additional branches to an existing Git repository. After adding, `git fetch` updates the local repository with the newly specified branches, allowing access to more versions. ```git git remote set-branches --add origin de-24 git remote set-branches --add origin de-23 git fetch ``` -------------------------------- ### Deepen Shallow Clone Source: https://github.com/stefanmaron/msdyn365bc.code.history/blob/master/README.md Deepens an existing shallow Git clone by fetching additional commits. This command allows you to gradually increase the history depth of your local repository. ```git git fetch --deepen 3 ``` -------------------------------- ### Delete Local Branches Source: https://github.com/stefanmaron/msdyn365bc.code.history/blob/master/README.md Deletes local copies of branches that were previously checked out. This command is used in conjunction with removing remote tracking branches to fully clean up local references. ```git git branch -D us-23 git branch -D us-24 ``` -------------------------------- ### Delete Remote Tracking Branches Source: https://github.com/stefanmaron/msdyn365bc.code.history/blob/master/README.md Deletes remote-tracking branches from the local Git repository. This command is used to clean up references to branches that are no longer needed or tracked. ```git git branch -d -r origin/us-23 git branch -d -r origin/us-24 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.