WEBVTT

00:00:00.900 --> 00:00:04.266
What did this summary say,
before Tuesday's change?

00:00:06.648 --> 00:00:07.510
Ask your agent.

00:00:08.021 --> 00:00:12.371
With Git, it reads the folder's history,
and finds the sentence that was cut.

00:00:14.800 --> 00:00:17.832
AI for Research Efficiency.

00:00:17.882 --> 00:00:21.012
Episode 5:
Save and share your work with GitHub.

00:00:24.300 --> 00:00:27.720
Last time, nine small habits
for working with an agent.

00:00:28.485 --> 00:00:32.828
This time: keep every version of a
project, and share it with a co-author.

00:00:33.259 --> 00:00:36.521
The agent runs the commands,
and you approve each one.

00:00:38.900 --> 00:00:41.128
One: Git, and GitHub.

00:00:41.973 --> 00:00:44.784
Git keeps your folder's history,
on your own computer.

00:00:45.176 --> 00:00:47.263
Each saved version is a commit.

00:00:48.674 --> 00:00:52.019
GitHub keeps a copy online,
and you choose who can see it.

00:00:52.370 --> 00:00:54.452
For research, start private.

00:00:58.100 --> 00:01:00.062
Two: set up once.

00:01:00.824 --> 00:01:02.529
Make a free account on GitHub.

00:01:02.880 --> 00:01:08.657
Then, in PowerShell, one winget line
installs GitHub's command-line tool, gh.

00:01:10.018 --> 00:01:14.329
On a Mac, Homebrew installs it:
brew install gh.

00:01:16.102 --> 00:01:19.730
Open a new window,
and type gh auth login.

00:01:20.121 --> 00:01:24.290
It asks a few questions, then sends you
to your browser with a one-time code.

00:01:29.300 --> 00:01:32.190
Three: make the folder a repository.

00:01:32.973 --> 00:01:36.976
Start your agent in the mode that
asks first, and ask in plain words:

00:01:37.386 --> 00:01:42.320
make this folder a Git repository, keep
large files and anything with a key out,

00:01:42.590 --> 00:01:44.331
and show me the list first.

00:01:45.921 --> 00:01:50.220
It asks before each step.
Read the command, then approve it.

00:01:51.972 --> 00:01:55.759
It writes a .gitignore file:
the list of what Git leaves out.

00:01:56.150 --> 00:02:00.318
Here, the key file,
and a sensor log of 140 MB.

00:02:02.079 --> 00:02:06.465
Git doesn't know who you are yet, so
the agent asks for a name and an email.

00:02:07.666 --> 00:02:10.656
Give it the private
noreply address GitHub gives you.

00:02:10.988 --> 00:02:13.054
Every commit you push shows it.

00:02:17.300 --> 00:02:20.583
Four: read the list
before anything goes up.

00:02:21.584 --> 00:02:23.868
22 files, and nothing with a key.

00:02:24.319 --> 00:02:26.754
Read it every time: on the free plan,

00:02:26.884 --> 00:02:30.010
GitHub doesn't scan private
repositories for keys.

00:02:31.370 --> 00:02:34.084
And unpublished data may
need your campus's approval

00:02:34.134 --> 00:02:35.519
before it goes anywhere.

00:02:38.900 --> 00:02:42.132
Five: create the repository,
and push.

00:02:42.935 --> 00:02:45.999
Ask the agent to create a
private repository on GitHub,

00:02:46.049 --> 00:02:46.860
and push to it.

00:02:47.210 --> 00:02:52.536
It runs gh repo create: private,
from this folder, and push.

00:02:54.737 --> 00:02:58.687
Your folder is now on GitHub,
private, with its whole history.

00:03:00.015 --> 00:03:05.178
If you ever make it public, everyone can
see it. That's a decision, not a default.

00:03:07.700 --> 00:03:09.986
Six: invite a co-author.

00:03:10.829 --> 00:03:13.199
On the repository's page: Settings,

00:03:13.370 --> 00:03:16.582
Collaborators, Add people,
and their username.

00:03:18.254 --> 00:03:22.557
They get an email invitation. Once they
accept, they can work in it with you.

00:03:23.859 --> 00:03:27.269
On a personal account, every
collaborator can change the files.

00:03:27.660 --> 00:03:30.106
Read-only access
needs an organization.

00:03:34.100 --> 00:03:36.066
Seven: make it a habit.

00:03:36.891 --> 00:03:39.584
After each change,
ask the agent to commit it,

00:03:39.635 --> 00:03:41.824
with a message
that says what changed.

00:03:43.368 --> 00:03:47.680
And when something goes wrong,
ask what changed, and to put it back.

00:03:48.152 --> 00:03:51.220
Tuesday's sentence returns,
as a new commit.

00:03:52.965 --> 00:03:56.617
On the companion page: every command
for Windows and the Mac,

00:03:56.969 --> 00:04:00.439
choosing a license,
and a DOI for your code.

00:04:05.300 --> 00:04:09.367
Pause here, and try three: start
your agent in your practice folder,

00:04:09.778 --> 00:04:13.335
ask for a repository with keys
and large files kept out,

00:04:13.786 --> 00:04:16.711
then read the list
and make the first commit.

00:04:22.100 --> 00:04:25.965
So: start private,
keep keys and big files out,

00:04:26.415 --> 00:04:28.738
read the list, and commit often.

00:04:31.500 --> 00:04:34.187
Next: publish a page with Vercel.
