Flashcards
Git/Version Control

Cards in this deck (17)
- 1What is Git?Git is a local version control and revision management system.
It allows users to track changes to projects as well as track history and different versions (branches). - 2git addAdd file contents to the index, staging them for commit. Individual files and entire directories can be added.

- 3git cloneClones a (usually remote) repository, creating a new directory with the same name.

- 4git commit -m ""Record changes to the repository. Files are first staged and usually a descriptive commit message is included.

- 5git checkoutSwitch branches or restore working tree files. If no path is given, git checkout will update HEAD to set the specified branch as the current branch.

- 6git branchLists, creates, or deletes git branches.

- 7git diffShow changes between the working tree and index, changes between two files on disc, or changes between two working trees.

- 8git fetchFetch refs from one or more repositories. Unlike "git pull", remote changes will not be incorporated and HEAD will not be updated.

- 9git --helpPrints the synopsis and a list of the most commonly used commands for the given operation.
- 10git initCreate an empty Git repository or reinitialize an existing one.
- 11git pullIncorporates changes from a remote repo. into the current branch. Shorthand for git fetch followed by git merge FETCH_HEAD.

- 12git statusShow the working tree status. This is commonly done before a commit to check which files are staged to be committed.

- 13git pushUpdates remote refs using local refs. Essentially "pushes" committed changes from local repository to the remote repo.

- 14git mergeIncorporates changes from named commits into the current branch. This is the second sub-process of "git pull".

- 15git logShow the commit logs, with author, date/time, and commit ID's for all previous commits.

- 16git remoteManage a set of tracked repositories. Useful for updating the remote repository URL (git remote set-url origin ).

- 17man gitShows the git manual (verbose) and list of all git commands with descriptions.
Further documentation is also available at: https://git-scm.com/docs/git
There are also some GREAT tutorials at:
https://www.atlassian.com/git/tutorials
Information
- Description
- Set of cards outlining Git and Version Control basics, as well as terminal commands for some common operations.
- Created by
- Andrew Watters
- Views
- 145
- Tags
- Rating
More on Version Control and Git