1
00:00:00,432 --> 00:00:02,742
- Hi and welcome back to the course.

2
00:00:02,742 --> 00:00:04,738
One last thing, if you're collaborating

3
00:00:04,738 --> 00:00:07,244
with many other people using GIT,

4
00:00:07,244 --> 00:00:09,368
I would recommend that you all

5
00:00:09,368 --> 00:00:13,854
take a reasonably comprehensive
GIT training course.

6
00:00:13,854 --> 00:00:16,287
The content here in this course

7
00:00:16,287 --> 00:00:20,080
was meant to help you put
your projects out there.

8
00:00:20,080 --> 00:00:22,605
But if you're collaborating
with many people,

9
00:00:22,605 --> 00:00:25,517
make sure you all understand how GIT works

10
00:00:25,517 --> 00:00:28,704
and decide on a good
workflow that will mean

11
00:00:28,704 --> 00:00:31,704
that no work is lost between people.

12
00:00:32,559 --> 00:00:36,486
For example, if you add some code to AP.PY

13
00:00:36,486 --> 00:00:39,162
and you push your changes,

14
00:00:39,162 --> 00:00:43,282
and then somebody else
adds some code to AP.PY

15
00:00:43,282 --> 00:00:45,567
and they push their changes,

16
00:00:45,567 --> 00:00:47,558
you're going to have a problem

17
00:00:47,558 --> 00:00:49,318
because the other person didn't

18
00:00:49,318 --> 00:00:51,651
download your changes first.

19
00:00:52,943 --> 00:00:56,667
So then GIT is going to
be left quite confused.

20
00:00:56,667 --> 00:00:58,536
So what you'd have to do there

21
00:00:58,536 --> 00:01:01,626
is for the other person to
download your code changes,

22
00:01:01,626 --> 00:01:04,664
make sure that your changes don't conflict

23
00:01:04,664 --> 00:01:06,164
with their changes

24
00:01:07,016 --> 00:01:09,248
and then push the new code up to the

25
00:01:09,248 --> 00:01:10,935
remote repository.

26
00:01:10,935 --> 00:01:13,926
And this is a simple problem to have,

27
00:01:13,926 --> 00:01:16,778
there are more complex
problems that you can have.

28
00:01:16,778 --> 00:01:19,830
Especially if you have a lot
of people working together.

29
00:01:19,830 --> 00:01:23,232
So reminder, that this GIT training,

30
00:01:23,232 --> 00:01:26,281
this course is short
to get your rest API's

31
00:01:26,281 --> 00:01:28,768
out there in case you're looking for jobs

32
00:01:28,768 --> 00:01:31,694
and you want to showcase your project.

33
00:01:31,694 --> 00:01:33,363
If you're working with many people,

34
00:01:33,363 --> 00:01:36,535
do make sure that you
all receive extensive

35
00:01:36,535 --> 00:01:40,188
GIT training because it can
save you a lot of headaches.

36
00:01:40,188 --> 00:01:42,420
As a reminder as well, if you are putting

37
00:01:42,420 --> 00:01:44,080
your code out there for jobs

38
00:01:44,080 --> 00:01:45,434
and for other people to see

39
00:01:45,434 --> 00:01:49,267
its always very useful
to have a Read Me file.

40
00:01:50,660 --> 00:01:52,876
So I would recommend that you create a

41
00:01:52,876 --> 00:01:55,907
Read Me file for your project.

42
00:01:55,907 --> 00:01:59,424
Now a Read Me file is
just a simple text file

43
00:01:59,424 --> 00:02:02,450
that will be displayed in your repository

44
00:02:02,450 --> 00:02:04,417
when people open it up.

45
00:02:04,417 --> 00:02:07,851
So a simple way to go about it is to do

46
00:02:07,851 --> 00:02:09,434
VIM README.md

47
00:02:09,434 --> 00:02:13,729
and this initialises a text
editor in your console.

48
00:02:13,729 --> 00:02:15,837
A text editor called VIM.

49
00:02:15,837 --> 00:02:18,253
VIM is quite powerful but I won't go

50
00:02:18,253 --> 00:02:20,997
into all of the details about VIM.

51
00:02:20,997 --> 00:02:22,949
Just that if you want to insert

52
00:02:22,949 --> 00:02:25,283
text into a file you've opened with VIM,

53
00:02:25,283 --> 00:02:28,674
you can press the I key, that's the I key,

54
00:02:28,674 --> 00:02:30,600
and that will put you into insert mode

55
00:02:30,600 --> 00:02:32,188
and then you can insert your description

56
00:02:32,188 --> 00:02:34,568
of your project here.

57
00:02:34,568 --> 00:02:35,901
This uses markdown

58
00:02:35,901 --> 00:02:37,270
and markdown is a way

59
00:02:37,270 --> 00:02:40,036
of structuring the text so that

60
00:02:40,036 --> 00:02:42,178
it is displayed in specific ways.

61
00:02:42,178 --> 00:02:44,149
For example, if you put a hash in front

62
00:02:44,149 --> 00:02:46,524
of a line that is a title,

63
00:02:46,524 --> 00:02:48,865
My Awesome REST API,

64
00:02:48,865 --> 00:02:51,019
and then you can have subtitles such as

65
00:02:51,019 --> 00:02:52,519
how to instal it.

66
00:02:53,723 --> 00:02:56,023
You can have code blocks

67
00:02:56,023 --> 00:02:57,924
which are delineated

68
00:02:57,924 --> 00:02:59,661
by 3 ambactics

69
00:02:59,661 --> 00:03:01,161
pip instal Flask,

70
00:03:02,140 --> 00:03:03,307
python app.py,

71
00:03:07,256 --> 00:03:10,047
And you can have a few other things

72
00:03:10,047 --> 00:03:12,117
like links and things like that

73
00:03:12,117 --> 00:03:15,450
but again, just have a short description

74
00:03:16,659 --> 00:03:18,826
on what your project does,

75
00:03:20,007 --> 00:03:21,757
maybe Implementation,

76
00:03:23,517 --> 00:03:27,184
and this project is
implemented using Flask,

77
00:03:28,422 --> 00:03:30,922
and is a REST API for a store.

78
00:03:32,009 --> 00:03:33,380
For example,

79
00:03:33,380 --> 00:03:36,830
in a description on what the project does

80
00:03:36,830 --> 00:03:38,669
and how its works.

81
00:03:38,669 --> 00:03:41,430
That's so when employers
go to your GIT Hub page

82
00:03:41,430 --> 00:03:42,946
and see your repositories,

83
00:03:42,946 --> 00:03:44,962
they realise that you've put some thought

84
00:03:44,962 --> 00:03:46,645
into creating nice applications

85
00:03:46,645 --> 00:03:49,623
that other people can
use and interact with.

86
00:03:49,623 --> 00:03:51,804
And that's always going to be helpful.

87
00:03:51,804 --> 00:03:53,696
If you have any particular projects

88
00:03:53,696 --> 00:03:55,411
that you want to put in GIT Hub

89
00:03:55,411 --> 00:03:56,871
and you're looking for a job,

90
00:03:56,871 --> 00:03:58,232
you can always contact me directly

91
00:03:58,232 --> 00:03:59,727
and I will give you a hand

92
00:03:59,727 --> 00:04:01,885
with essentially marketing them, really,

93
00:04:01,885 --> 00:04:03,708
and making sure that the GIT Hub page

94
00:04:03,708 --> 00:04:05,982
looks nice and professional.

95
00:04:05,982 --> 00:04:08,348
Once you have written your description

96
00:04:08,348 --> 00:04:09,607
of your project and everything,

97
00:04:09,607 --> 00:04:13,003
just press the ESC key on your keyboard

98
00:04:13,003 --> 00:04:14,518
and then type :WQ

99
00:04:14,518 --> 00:04:18,201
and then VIM will write the file to disc

100
00:04:18,201 --> 00:04:19,951
and quit the programme.

101
00:04:22,024 --> 00:04:25,212
Then, as usual, you'll
want to do a GIT status,

102
00:04:25,212 --> 00:04:26,969
check that the file is there,

103
00:04:26,969 --> 00:04:28,302
add it,

104
00:04:28,302 --> 00:04:29,219
then commit

105
00:04:30,181 --> 00:04:31,414
READ ME

106
00:04:31,414 --> 00:04:32,581
and then push.

107
00:04:33,647 --> 00:04:36,126
And of course, we'll have to do this again

108
00:04:36,126 --> 00:04:38,442
because we have changed the

109
00:04:38,442 --> 00:04:40,985
remote repository to use SSH.

110
00:04:40,985 --> 00:04:42,814
And notice how it didn't ask me for

111
00:04:42,814 --> 00:04:44,714
my password this time

112
00:04:44,714 --> 00:04:46,743
because I'm using the SSH key

113
00:04:46,743 --> 00:04:48,372
as well.

114
00:04:48,372 --> 00:04:49,558
So that's it!

115
00:04:49,558 --> 00:04:51,999
When you go to your GIT Hub page,

116
00:04:51,999 --> 00:04:54,550
you will now see a nice thing here

117
00:04:54,550 --> 00:04:55,666
with some description,

118
00:04:55,666 --> 00:04:58,000
how to instal and things like that,

119
00:04:58,000 --> 00:05:00,007
this is not very explanatory

120
00:05:00,007 --> 00:05:02,540
but I'm sure you can come
up with better things

121
00:05:02,540 --> 00:05:03,957
for your project.

122
00:05:04,840 --> 00:05:07,017
And if you need any help as I said,

123
00:05:07,017 --> 00:05:10,970
just contact me and I will
do my best to help you out.

124
00:05:10,970 --> 00:05:13,900
And that's it for this section, really,

125
00:05:13,900 --> 00:05:15,567
we're going to move on to the last video

126
00:05:15,567 --> 00:05:17,555
of the section just to conclude

127
00:05:17,555 --> 00:05:19,675
and then we'll move on to the next bit

128
00:05:19,675 --> 00:05:21,756
which is gonna be deployments.

129
00:05:21,756 --> 00:05:24,025
So I'm really excited to
go through that with you

130
00:05:24,025 --> 00:05:25,597
and I'll see you in the very next video.

