MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Pull, Push and Fetch Files with Git


Use this workflow to work with a remote repository. With Git, there is a two-step
workflow: commit local changes, and then push to the remote repository. In MATLAB, the
only access to the remote repository is through the Pull, Push and Fetch menu options.
All other actions, such as Compare to Ancestor and Commit, use the local repository.
This diagram represents the Git workflow.

Pull and Push


To get the latest changes, right-click the Current Folder browser and select Source
Control > Pull. Pull fetches the latest changes and merges them into your current
branch. If you are not sure what is going to come in from the repository, use fetch to
examine the changes first and then merge the changes manually.

NoteBefore you can merge, you must install command-line Git and register binary files
to prevent Git from inserting conflict markers. See “Install Command-Line Git Client” on
page 32-31.

Pull, Push and Fetch Files with Git
Free download pdf