https://github.com/chendaniely/2021-11-02-git_basics

https://github.com/chendaniely/2021-11-02-git_basics

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.9%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: chendaniely
  • Default Branch: main
  • Size: 253 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed over 4 years ago
Metadata Files
Readme Changelog

README.md

2021/11/02 Git Basics

  • git init: create a git repo in current folder.
    • only need to do this once, do not nest repos
  • git status: tells you the status of the repository

  • git add <FILE>: adds the to the staging area

  • git commit: opens up text editor for you to type commit message

    • git commit -m <MESSAGE>: allows you to write the commit message in a single command
  • HEAD: telling you where you are looking in the history

  • git diff: show you the difference from all your files to last commit

    • git diff HEAD <FILE>: only diff the
    • git diff HEAD~2: diff current state from 2 commits ago
    • git diff <HASH>: diff current state from location
  • git log: looks at your history log

    • git log --oneline: gives you the one line version of log
  • git checkout <HASH> <FILE>: revert to the version in

  • git status: read what git status tells you to revert a file and/or un-stage a file

  • git checkout <HASH>: move ALL the files to their versions in

    • git checkout main: to back to main branch
    • git switch main, git checkout master: might do the same thing

Remotes

GitHub is an example of a remote

  • git remote add origin <URL>: assigns the , the name "origin"
  • git push origin main: pushes the main branch to the origin
  • git pull origin main: pull the main branch from the remote down to local

Owner

  • Name: Daniel Chen
  • Login: chendaniely
  • Kind: user
  • Location: JFK -> DCA -> ROA -> JFK -> YVR
  • Company: @rstudio @UBC-DSCI @UBC-MDS

bow ties are cool

GitHub Events

Total
Last Year

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 11
  • Total Committers: 1
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Daniel Chen c****y@g****m 11

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels