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 repositorygit add <FILE>: adds theto the staging area git commit: opens up text editor for you to type commit messagegit commit -m <MESSAGE>: allows you to write the commit message in a single command
HEAD: telling you where you are looking in the historygit diff: show you the difference from all your files to last commitgit diff HEAD <FILE>: only diff thegit diff HEAD~2: diff current state from 2 commits agogit diff <HASH>: diff current state fromlocation
git log: looks at your history loggit log --oneline: gives you the one line version of log
git checkout <HASH> <FILE>: revertto the version in git status: read what git status tells you to revert a file and/or un-stage a filegit checkout <HASH>: move ALL the files to their versions ingit checkout main: to back to main branchgit 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 origingit 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
- Website: http://chendaniely.github.io
- Twitter: chendaniely
- Repositories: 460
- Profile: https://github.com/chendaniely
bow ties are cool
GitHub Events
Total
Last Year
Committers
Last synced: about 1 year ago
Top Committers
| Name | 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