Git

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Revision as of 16:04, 11 November 2021 by Woozle (talk | contribs) (→‎Commands)
Jump to navigation Jump to search

About

Git is a version control system based on a powerful distributed model.

This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!

Concepts

Commands

alphabetical by function

initialization

creating from scratch

  • git init initializes a new repository; does not add anything
  • git add updates the index using content found in the working tree (can be specified), to prepare the content staged for the next commit
  • git rm removes files from staging and by default also from the filesystem
  • git status shows status of current repository
  • git diff shows difference between current directory contents and what you have staged
  • git commit commits changes currently staged

copying to elsewhere

copying from elsewhere

  • git clone copies a repository from somewhere else

Files

Software

Services

  • GitHub: free web-based git repository for open-source projects

Error Messages

  • Error Code 403 fatal: HTTP request failed may indicate a bad password. I've found that sometimes the password either doesn't paste properly or else isn't being accepted the first time; trying again with the same password may work. (The password is not displayed, so I'm not sure which it is.)

Links

Reference

How To

Online Books

Online Courses

Articles

Discussion