- Backing-up your work
- Tracking changes
- Collaborating on work with others
- Making work public
A directory containing:
- The files being tracked
- A subdirectory called
.git
containing:- The data needed to move back (and forward) through the tracked changes.
- The data needed to move between branches (alternate histories of the tracked files)
- Configuration data (username, location of a remote version of the repository, etc.)
Software to manage a git repository and syncronise local and remote copies.
- An place to store remote copies of git repositories.
- A suite of tools to manage remote repositories and collaborate with others on them.
- More tools to do things with the contents of remote repositories (github actions, github pages, etc.)
Other alternatives include GitLab, Bitbucket etal.
- git clone
- git add
- git commit -m
- git push
- git pull
- Have some work to start tracking with git.
- Create a new repo on GitHub.
- Start a new project in Rstudio.
- Move files to new folder.
- Commit files.
- Push the changes.
- Title + description (optional).
- Use active future tense for title.
- Start title and description with uppercase letter.
- Don't end the title with a full stop (do end the description with one though).
- Use a title with 50 characters or less.
- Blank line after title.
- Use hard line endings at 50 characters or less for the description
Add a new README file
Have added a new README file that describes how
one can use git/GitHub. The README includes an
example of making a commit message.