If you have modifications to this file that you'd like to share, I welcome them. Please follow the instructions on issuing a pull request at the main repo to do this:
https://github.com/manur/MATLAB-git
--
A thin MATLAB wrapper for Git.
Short instructions:
Use this exactly as you would use the OS command-line verison of Git.
Long instructions are:
This is not meant to be a comprehensive guide to the near-omnipotent
Git SCM:
http://git-scm.com/documentation
Common MATLAB workflow:
% Creates initial repository tracking all files under some root
% folder
>> cd ~/
>> git init
% Shows changes made to all files in repo (none so far)
>> git status
% Create a new file and add some code
>> edit foo.m
% Check repo status, after new file created
>> git status
% Stage/unstage files for commit
>> git add foo.m % Add file to repo or to stage
>> git reset HEAD . % To unstage your files from current commit area
% Commit your changes to a new branch, with comments
>> git commit -m 'Created new file, foo.m'
% Other useful commands (replace ellipses with appropriate args)
>> git checkout ... % To restore files to last commit
>> git branch ... % To create or move to another branch
>> git diff ... % See line-by-line changes
Useful resources:
1. GitX: A visual interface for Git on the OS X client
2. Github.com: Remote hosting for Git repos
3. Git on Wikipedia: Further reading |