README
of the repoA Git repository is a virtual storage of your project. It allows you to save versions of your code, which you can access when needed. (Source)
A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project. (Source)
Cloning a repository syncs it to your local machine. After you clone, you can add and edit files and then push and pull updates. (Source)
https://github.com/{USERNAME}/git-our-shit-together-test-repo
opens-> influences how GitHub authenticates you
id_rsa.pub
and id_rsa
)ssh://...
A commit is the Git equivalent of a "save".[...] Git committing is an operation that acts upon a collection of files and directories. (Source)
--> Commit = a "save point" in Git.
reset master to this commit
hard
, mixed
, soft
fast forward master to origin/master
(commit at top)install.packages("xaringan")
xaringan::inf_mr()
with index.Rmd
openREADME.md
or index.Rmd
)... what?
Merge conflicts occur when competing changes are made to the same line of a file, or when one person edits a file and another person deletes the same file. (Source)
README.md
on GitHub in a certain lineREADME.md
locally on your machine in the same line (edit it differently!)pull
-> something Gitkraken often does for you to keep your changes safe.
git stash temporarily shelves (or stashes) changes you've made to your working copy so you can work on something else, and then come back and re-apply them later on. Stashing is handy if you need to quickly switch context and work on something else, but you're mid-way through a code change and aren't quite ready to commit. (Source)
--> put it away for now!
#issueno in commit message associates commit with issue
A branch represents an independent line of development. Branches serve as an abstraction for the edit/stage/commit process. You can think of them as a way to request a brand new working directory, staging area, and project history. (Source)
The git checkout command lets you navigate between the branches created by git branch. Checking out a branch updates the files in the working directory to match the version stored in that branch, and it tells Git to record all new commits on that branch. Think of it as a way to select which line of development you’re working on. (Source)
devtools::install_github()
)devtools::install_github()
)devtools::install_github()
)devtools::install_github()
)Pull requests let you tell others about changes you've pushed to a branch in a repository on GitHub. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before your changes are merged into the base branch. (Source)
issue2-{description}
locallyKeyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |