You can also Commit and Push your changes at the same time, via the Commit dialog:Īt the bottom of the window, there are five tabs displayed, as illustrated below:Ĭhanges - Displays the change in code between your local file and the base file. This will display the Push dialog, allowing you to view the committed changes, and select the branch to push to: This is done in Visual Studio for Mac by selecting Version Control > Push Changes.
Once you have updated your files, reviewed and committed them, you must then Push them to the remote repository to allow others to access your changes. This is done in Visual Studio for Mac by selecting Version Control > Update Solution. To synchronize changes that other people have made to the remote repository, you must Pull from there. Pushing and Pulling are two of the most commonly used actions within Git. The image below illustrates the options provided by Visual Studio for Mac by the Version Control menu item: The sections below will explore how Git can be used for version control in Visual Studio for Mac. This means that there is a central server that contains all the files, but when a repository is checked out from this central source, the entire repository is cloned to the local machine.
Git is a distributed version control system that allows teams to work on the same documents simultaneously.