GIT Commands

From SIMA wiki
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 -a 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