File:Git operations.svg
Explanation
← Older revision
Revision as of 21:00, 21 March 2013
Line 1:
Line 1:
== {{int:filedesc}} ==
== {{int:filedesc}} ==
{{Information
{{Information
−
|Description=Diagram showing some common git operations.
+
|Description={{en|Diagram showing some common git operations.}}
|Source=self made
|Source=self made
|Date=March 2013
|Date=March 2013
Line 14:
Line 14:
[[Category:Functional diagrams]]
[[Category:Functional diagrams]]
[[Category:SVG diagrams]]
[[Category:SVG diagrams]]
+
+
== Explanation ==
+
{{en|
+
A very brief and incomplete of the operations shown in the diagram:
+
+
; git pull: fetches remote changes into the local clone, and merges them into the current working files.
+
; git checkout: replaces the current working files with files from a branch.
+
; git checkout --track: creates a local branch from a remote branch, links them, and replaces the current working files with files from that branch.
+
; git fetch: downloads changes from a remote repository into the local clone
+
; git reset: makes the current branch point to some specific revision or branch.
+
; git reset --hard: makes the current branch point to some specific revision or branch, and replaces the current working files with the files from that branch.
+
; git merge: merges files from a given branch into the current branch.
+
; git push: uploads changes from local branches to the respective remote repositories.
+
; git add: puts current working files into the stage (aka index or cache)
+
; git commit: commits staged changes to a local branch
+
; git commit -a: commits all modified files to a local branch (shorthand for "git add" and "git commit")
+
+
}}
+
== {{int:license-header}} ==
== {{int:license-header}} ==
{{self|GFDL|cc-by-3.0}}
{{self|GFDL|cc-by-3.0}}
http://commons.wikimedia.org/w/index.php?title=File:Git_operations.svg&diff=93044807&oldid=93044248