GIT Commands

From SIMA wiki
Revision as of 11:25, 17 January 2013 by Herret (talk | contribs) (Created page with "__NOTOC__ File:Git_workflow.PNG If you change a file the changes are saved in the workspace ===add=== adds a changed file to the index ===commit=== commits all files fro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Git workflow.PNG

If you change a file the changes are saved in the workspace

add

adds a changed file to the index

commit

commits all files from the index to the selected branch of the local repository. If the option -1 is set all changes from the workspace were committed to the local repository

push

pushes the local representation of the remote branches into the remote repository

fetch

downloads objects and references from the remote repository. The local branches are not merged with the corresponding local representation of the remote branches! (see Branches)

merge

merges one branch into another ===pulL===calls the function fetch and merges the local branch into the corresponding (local representation) remote branch