https://github.com/chendaniely/2021-05-25-git

https://github.com/chendaniely/2021-05-25-git

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 (4.6%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

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

README.md

2021-05-25 GIT Basics

  • git init: initialize git repo in current location
  • git status: gives you the status
  • git add <FILE>: adds to the staging area
  • git commit: commits files from staging area
    • git commit -m "MESSAGE": commit without opening editor
  • git log: show you commit history

    • git log --oneline: condensed history
  • git diff: gives you the difference

    • git diff --staged: diff files in the staging area
  • git diff HEAD~2: diff 2 commits ago

  • git diff <SHA> <FILE>: diff a file against a specific commit

  • git checkout <SHA> <FILE>: revert from to current time

  • git checkout <SHA> move you to

    • git checkout main: go back to main starting point
  • .gitignore: file that pattern matches files to ignore

  • .gitkeep: convention to keep a empty folder

Remotes

  • git remote add <NAME> <URL>: point to the remote
  • git push <WHERE> <WHAT>: local repo -> remote
  • git pull <WHERE> <WHAT>: remote -> local

BRANCHES

How to fix master -> main

  1. git checkout -b main
  2. git push origin main
  3. fix default branch in github

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: 12 months 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: 12 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