git: fatal: detected dubious ownership in repository

Error: When using Git, getting the following error when trying to link to a Git repository… Fix: Open up command prompt and run The above should add the safe directory to the .gitconfig file Reference: https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-reposit

TortoiseGit Error: Filename too long

Error: Getting the following error when trying to clone a project in TortoiseGit or Visual Studio… error: unable to create file xxxxxxx: Filename too long Fix: Location your .gitconfig file Open up the .gitconfig file and add “longpaths = true”

DevOps Visual Studio 2022 Local/Remote Branch code setup

Get Latest from Main Branch In “Git Changes” window, go to Local -> main branch Do a “Pull” to get latest changes from main branch. Switch and select Local -> user branch Hover over “main” branch, right click and select “Merge into Current Branch” Push Changes to Main Branch In “Git Changes” window, “Commit” all... » read more

Create a new local repository using TortoiseGit

In Windows folder explorer, right click on folder, TortoiseGit -> Git Create repository here… Note: Create an empty folder, clone it to DevOps project, and then add files to the empty folder. Create .gitignore file to ignore folders and files.

Add existing Visual Studio project to existing DevOps Repo.

Current Setup An existing Visual Studio project without any source control links. An existing DevOps project with default Repo Step 1 – Open up existing Visual Studio project and create a local Git Repo Create a new local Git repo for your Visual Studio solution, by right-clicking the solution name in Solution Explorer, and then selecting Create... » read more

TortoiseGit

TortoiseGit for 64-bit Windows.  https://tortoisegit.org/download/ Pre-reqs Install FAQ and Pre-reqs are here: https://tortoisegit.org/support/faq/#prerequisites git for Windows https://gitforwindows.org/ TortoiseGit vs TortoiseSVN TortoiseGit vs TortoiseSVN: What are the differences? Developers describe TortoiseGit as “The Power of Git in a Windows Shell“. It is a Git revision control client, implemented as a Windows shell extension and based on TortoiseSVN. It is free... » read more

DevOps dev.azure.com vs visualstudio.com

Switch existing organizations to use the new domain name URL Although we’ve moved to the new dev.azure.com domain name as the URL for new organizations, you’ll be able to continue accessing your organization using the visualstudio.com domain, as usual. If you’d like to change your URL to be based on dev.azure.com, an organization administrator (Project Collection Administrator) can change this... » read more

git push

The git push command is used to upload local repository content to a remote repository. Pushing is how you transfer commits from your local repository to a remote repo.  git push updates the remote branch with local commits. It is one of the four commands in Git that prompts interaction with the remote repository. You can also... » read more