1
00:00:00,900 --> 00:00:04,266
What did this summary say,
before Tuesday's change?

2
00:00:06,648 --> 00:00:07,510
Ask your agent.

3
00:00:08,021 --> 00:00:12,371
With Git, it reads the folder's history,
and finds the sentence that was cut.

4
00:00:14,800 --> 00:00:17,832
AI for Research Efficiency.

5
00:00:17,882 --> 00:00:21,012
Episode 5:
Save and share your work with GitHub.

6
00:00:24,300 --> 00:00:27,720
Last time, nine small habits
for working with an agent.

7
00:00:28,485 --> 00:00:32,828
This time: keep every version of a
project, and share it with a co-author.

8
00:00:33,259 --> 00:00:36,521
The agent runs the commands,
and you approve each one.

9
00:00:38,900 --> 00:00:41,128
One: Git, and GitHub.

10
00:00:41,973 --> 00:00:44,784
Git keeps your folder's history,
on your own computer.

11
00:00:45,176 --> 00:00:47,263
Each saved version is a commit.

12
00:00:48,674 --> 00:00:52,019
GitHub keeps a copy online,
and you choose who can see it.

13
00:00:52,370 --> 00:00:54,452
For research, start private.

14
00:00:58,100 --> 00:01:00,062
Two: set up once.

15
00:01:00,824 --> 00:01:02,529
Make a free account on GitHub.

16
00:01:02,880 --> 00:01:08,657
Then, in PowerShell, one winget line
installs GitHub's command-line tool, gh.

17
00:01:10,018 --> 00:01:14,329
On a Mac, Homebrew installs it:
brew install gh.

18
00:01:16,102 --> 00:01:19,730
Open a new window,
and type gh auth login.

19
00:01:20,121 --> 00:01:24,290
It asks a few questions, then sends you
to your browser with a one-time code.

20
00:01:29,300 --> 00:01:32,190
Three: make the folder a repository.

21
00:01:32,973 --> 00:01:36,976
Start your agent in the mode that
asks first, and ask in plain words:

22
00:01:37,386 --> 00:01:42,320
make this folder a Git repository, keep
large files and anything with a key out,

23
00:01:42,590 --> 00:01:44,331
and show me the list first.

24
00:01:45,921 --> 00:01:50,220
It asks before each step.
Read the command, then approve it.

25
00:01:51,972 --> 00:01:55,759
It writes a .gitignore file:
the list of what Git leaves out.

26
00:01:56,150 --> 00:02:00,318
Here, the key file,
and a sensor log of 140 MB.

27
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.

28
00:02:07,666 --> 00:02:10,656
Give it the private
noreply address GitHub gives you.

29
00:02:10,988 --> 00:02:13,054
Every commit you push shows it.

30
00:02:17,300 --> 00:02:20,583
Four: read the list
before anything goes up.

31
00:02:21,584 --> 00:02:23,868
22 files, and nothing with a key.

32
00:02:24,319 --> 00:02:26,754
Read it every time: on the free plan,

33
00:02:26,884 --> 00:02:30,010
GitHub doesn't scan private
repositories for keys.

34
00:02:31,370 --> 00:02:34,084
And unpublished data may
need your campus's approval

35
00:02:34,134 --> 00:02:35,519
before it goes anywhere.

36
00:02:38,900 --> 00:02:42,132
Five: create the repository,
and push.

37
00:02:42,935 --> 00:02:45,999
Ask the agent to create a
private repository on GitHub,

38
00:02:46,049 --> 00:02:46,860
and push to it.

39
00:02:47,210 --> 00:02:52,536
It runs gh repo create: private,
from this folder, and push.

40
00:02:54,737 --> 00:02:58,687
Your folder is now on GitHub,
private, with its whole history.

41
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.

42
00:03:07,700 --> 00:03:09,986
Six: invite a co-author.

43
00:03:10,829 --> 00:03:13,199
On the repository's page: Settings,

44
00:03:13,370 --> 00:03:16,582
Collaborators, Add people,
and their username.

45
00:03:18,254 --> 00:03:22,557
They get an email invitation. Once they
accept, they can work in it with you.

46
00:03:23,859 --> 00:03:27,269
On a personal account, every
collaborator can change the files.

47
00:03:27,660 --> 00:03:30,106
Read-only access
needs an organization.

48
00:03:34,100 --> 00:03:36,066
Seven: make it a habit.

49
00:03:36,891 --> 00:03:39,584
After each change,
ask the agent to commit it,

50
00:03:39,635 --> 00:03:41,824
with a message
that says what changed.

51
00:03:43,368 --> 00:03:47,680
And when something goes wrong,
ask what changed, and to put it back.

52
00:03:48,152 --> 00:03:51,220
Tuesday's sentence returns,
as a new commit.

53
00:03:52,965 --> 00:03:56,617
On the companion page: every command
for Windows and the Mac,

54
00:03:56,969 --> 00:04:00,439
choosing a license,
and a DOI for your code.

55
00:04:05,300 --> 00:04:09,367
Pause here, and try three: start
your agent in your practice folder,

56
00:04:09,778 --> 00:04:13,335
ask for a repository with keys
and large files kept out,

57
00:04:13,786 --> 00:04:16,711
then read the list
and make the first commit.

58
00:04:22,100 --> 00:04:25,965
So: start private,
keep keys and big files out,

59
00:04:26,415 --> 00:04:28,738
read the list, and commit often.

60
00:04:31,500 --> 00:04:34,187
Next: publish a page with Vercel.
