Modern Plain Text Social Science: Week 4
September 18, 2023
.git
folder is “hidden” because its name begins with a dot.git add <filename>
.git
folder.-m
is for our benefit. It should be terse and informative about what’s new, fixed, or changed in the commit..git
folder, a compressed version of the file is created..git
folder that sits at the root of our project. Conceptually we think of it as its own separate thing that git is managing for us..git
folder that sits at the root of our project. Conceptually we think of it as its own separate thing that git is managing for us..git
folder inside the project, but think of it as a separate entity, the local repository.git add <filename>
and git commit -m "Message"
git add -u
to stage any changes to every already-tracked file.git add -u
There’s no such thing as the Cloud
It’s just someone else’s computer
push
changes to GitHub or wherever our remote repository is located.git pull
❯ git log
commit 6df6d6b10b127e87115dceac06c869150b67e800 (HEAD -> main, origin/main)
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 17:49:33 2023 -0400
Began writeup
commit ef0772106fe4d6f10ee62afd3c951ff14b16efb1
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 17:38:55 2023 -0400
Data and Rproj files
commit f43f6f10ba5cd1a57430c032c8c14f056b154e9b
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 17:34:08 2023 -0400
Added covidcases
SHA
hash.> git log --oneline
6df6d6b (HEAD -> main, origin/main) Began writeup
ef07721 Data and Rproj files
f43f6f1 Added covidcases
HEAD
main
branchcovidcases.qmd
# Back at the shell here
> git status
On branch figtest
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: covidcases.qmd
no changes added to commit (use "git add" and/or "git commit -a")
> git log --abbrev-commit
commit 912aed7 (HEAD -> figtest)
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 20:25:42 2023 -0400
Checking ggplot code
commit 6df6d6b (origin/main, main)
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 17:49:33 2023 -0400
Began writeup
commit ef07721
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 17:38:55 2023 -0400
Data and Rproj files
commit f43f6f1
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 17:34:08 2023 -0400
Added covidcases
main
> git merge figtest
Updating 6df6d6b..4a77b2f
Fast-forward
covidcases.qmd | 13 +++++++++++++
1 file changed, 13 insertions(+)
> git log --abbrev-comit
commit 06677f4 (HEAD -> main, origin/main)
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 20:45:10 2023 -0400
Load the US data
commit 4a77b2f (origin/figtest, figtest)
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 20:33:57 2023 -0400
Fixed the plot
commit 912aed7
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 20:25:42 2023 -0400
Checking ggplot code
commit 6df6d6b
Author: Kieran Healy <kjhealy@gmail.com>
Date: Mon Sep 18 17:49:33 2023 -0400
Began writeup
add
, commit
, and push
the results.