Git Vocabulary

From TSAS Library
Jump to: navigation, search

Some things to know about Git and GitHub:

  • Repository (or "repo") is a folder or directory containing all of the files within a project.
  • Commit is the action of adding a new file, or applying changes to the files, within a repo.
  • History shows the changes made to the repo by each commit. Note that you can go back to a previous version to undo your changes with this!
  • Commit hash is a unique identifier for each commit action. This allows you to share previous versions and control your changes.[1]

Some things to know about Git and GitHub:

  • Branch a version of your repository. You may have several branches in each project, edited by many people, or to keep track of attempted alterations to your main, Master, branch. Create a new branch at the commit action, or by selecting the branch in dropdown. (See a cool visualization of these changes by clicking the "Graphs" tab on your main page, then choosing "Network"!)
  • Merge combine the main files in the master branch with those in another branch. This allows you to choose whether or not to apply the changes suggested by others, or to apply the attempted alterations you made in a branch.[2]
  • Fork allows you to copy an entire repo, either your own or another's, into your account. This includes the history, as well.
  • Pull request is the action of asking the owner of a repo to "pull" your branch into the main repository on their account.[3]

References