4 This page holds a list of some helpful git commands. Several of them
5 were borrowed from Mislav's
6 `Blog <http://mislav.uniqpath.com/2010/07/git-tips/>`_
8 **git remote show origin**
10 Find out what branches are tracked, configured for pull, configured
11 for push, and are 'up to date'.
15 Update local references to remote branches.
19 View each commits changes.
21 **git log -m -S"search text"**
23 Search through commits for commit messages containing the text =
26 **git reset --soft HEAD**
28 Accidentally added the wrong file to the index? This command will
29 reset the current head to HEAD and keep your changes.
31 **git reset --hard HEAD**
33 Remove all your changes and reset the current head to HEAD.
35 **git commit --amend**
37 Change the commit message of the most recent commit.
39 **git add** (**FILENAME** *or* **DIRECTORY**)
41 Add a single file or directory to the index. If a directory is
42 specified all files that
43 are new or have been changed under that directory are added.
47 Open up the editor specified by git.editor to review changes and add
49 If no message is given, then the commit is aborted. Commit takes
53 **git commit -m "COMMIT MESSAGE"**
55 Commit changes with the message "COMMIT MESSAGE".
57 **git cherry -v BRANCH**
59 Will list the commits that are part of the current branch, and not