Chapter 3 How to Automate the Network?

For diagrams, tables, or exact code formatting, .

JOHN W. CAPOBIANCOPRINTED PAGE 45

https://git-scm.com/docs/git-add/ git commit Commit changes to the active branch. These commits have an ID that can be used to track the change and act like a check point in the change history. Comparisons in TFS can be done in the GUI showing exactly what changes were made as part of each commit. It is important, especially in a distributed environment, to commit small and focused changes often and only include specific, related changes per commit. It is not recommended to accumulate many local changes and bulk commit them into the branch. Committing often allows for multiple people to collaborate on the same branch and Git will track all the distributed changes across the working branch. This is reflected in the branch history as well as part of the pull request later in the pipeline.

For details visit: https://git-scm.com/docs/git-commit/ git push Pushes locally committed changes to the remote repository. It requires authentication against TFS. This is the last step in updating the remote repository with committed updates which pushes the commits into the remote branch.

Take note that this updates the working branch and not the master branch. Use a pull request in TFS to merge the working branch into the master branch in TFS. The master branch should have a history of pull requests while the working branch will have a history of commits.

For details visit: https://git-scm.com/docs/git-push/ git pull Pulls down any changes from the remote repository syncing the repository with the remote branch. When working in a distributed environment on a shared branch and commits have been performed on another system it is recommended to refresh your local repository often using git pull. Development may be performed in a Windows host using VS Code and may need to be synchronized with the Linux host running Ansible. Changes from TFS need to be pulled locally as they are pushed from the remote host. VS Code can be configured to automatically poll TFS and notify developers that updates for their branch are available.

For details visit: https://git-scm.com/docs/git-pull/ For more information or to download Git visit: https://git-scm.com/ Visual Studio Code (VS Code)