Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,389 --> 00:00:07,199
[Music]
2
00:00:04,960 --> 00:00:09,280
hello my name is stacey here and today i
3
00:00:07,200 --> 00:00:11,280
would like to talk to you about what's
4
00:00:09,279 --> 00:00:13,439
new with our git tooling in visual
5
00:00:11,279 --> 00:00:15,919
studio 2022
6
00:00:13,439 --> 00:00:18,239
the first new feature i am excited about
7
00:00:15,919 --> 00:00:21,278
is multi-repo support
8
00:00:18,239 --> 00:00:24,000
visual studio 2022 better supports
9
00:00:21,278 --> 00:00:27,039
cross-team collaboration by enabling you
10
00:00:24,000 --> 00:00:28,960
to seamlessly work in a solution with
11
00:00:27,039 --> 00:00:30,800
projects hosted on different
12
00:00:28,960 --> 00:00:32,558
repositories
13
00:00:30,800 --> 00:00:35,039
you no longer need to switch between
14
00:00:32,558 --> 00:00:36,558
repositories or use different instances
15
00:00:35,039 --> 00:00:39,359
of visual studio
16
00:00:36,558 --> 00:00:42,078
to get started just make sure that the
17
00:00:39,359 --> 00:00:45,840
feature flag under tools options
18
00:00:42,079 --> 00:00:48,320
is enabled for multi-repo support
19
00:00:45,840 --> 00:00:52,079
once you do that you can
20
00:00:48,320 --> 00:00:52,079
start by loading your solution
21
00:00:53,198 --> 00:00:57,039
and
22
00:00:54,399 --> 00:01:00,640
visual studio will load the solution and
23
00:00:57,039 --> 00:01:04,079
activate all of your repos
24
00:01:00,640 --> 00:01:06,319
you can also go to solution explorer
25
00:01:04,079 --> 00:01:07,760
and see that both of your solutions are
26
00:01:06,319 --> 00:01:09,519
there
27
00:01:07,760 --> 00:01:10,320
and the status bar is indicating that
28
00:01:09,519 --> 00:01:12,399
both
29
00:01:10,319 --> 00:01:15,839
repositories are active
30
00:01:12,400 --> 00:01:18,640
you can also get started by adding
31
00:01:15,840 --> 00:01:20,320
projects to your solution and so as long
32
00:01:18,640 --> 00:01:21,680
as your projects are under source
33
00:01:20,319 --> 00:01:24,399
control
34
00:01:21,680 --> 00:01:26,960
your visual studio will detect them
35
00:01:24,400 --> 00:01:28,400
you can also click on the feature branch
36
00:01:26,959 --> 00:01:30,719
on the status bar
37
00:01:28,400 --> 00:01:32,960
which would open the git repository
38
00:01:30,719 --> 00:01:34,719
window as you can see
39
00:01:32,959 --> 00:01:36,879
both of the repos both of my
40
00:01:34,719 --> 00:01:38,400
repositories are showing there where i
41
00:01:36,879 --> 00:01:41,280
can browse
42
00:01:38,400 --> 00:01:43,520
and see my commits
43
00:01:41,280 --> 00:01:45,359
and now to demonstrate how multi-repo
44
00:01:43,519 --> 00:01:46,239
works in visual studio
45
00:01:45,359 --> 00:01:50,640
let's
46
00:01:46,239 --> 00:01:52,959
add a new method on our math library
47
00:01:50,640 --> 00:01:57,040
and then consume that method in our
48
00:01:52,959 --> 00:01:57,039
multi-label calculator project
49
00:01:59,280 --> 00:02:03,920
so as you can see i am under the math
50
00:02:02,319 --> 00:02:07,919
library
51
00:02:03,920 --> 00:02:11,120
i have the simple math.cs document open
52
00:02:07,920 --> 00:02:12,400
and i have just pasted the multiply
53
00:02:11,120 --> 00:02:16,239
method
54
00:02:12,400 --> 00:02:18,319
now let's go to the program.cs
55
00:02:16,239 --> 00:02:20,560
if we go to the get changes window we'll
56
00:02:18,318 --> 00:02:21,679
be able to see that the changes we made
57
00:02:20,560 --> 00:02:24,318
are shown
58
00:02:21,680 --> 00:02:25,439
for both of the repositories we can also
59
00:02:24,318 --> 00:02:27,759
filter
60
00:02:25,439 --> 00:02:30,079
and focus on a single repository using
61
00:02:27,759 --> 00:02:31,280
the repository drop-down or choose to
62
00:02:30,080 --> 00:02:32,959
view both
63
00:02:31,280 --> 00:02:33,840
repositories
64
00:02:32,959 --> 00:02:36,479
and
65
00:02:33,840 --> 00:02:41,039
be able to commit our changes across
66
00:02:36,479 --> 00:02:41,039
these two repos with a single step
67
00:02:41,199 --> 00:02:45,199
we can see the confirmation confirming
68
00:02:42,878 --> 00:02:47,518
that we have been able to commit across
69
00:02:45,199 --> 00:02:50,159
the two repositories if we click on the
70
00:02:47,519 --> 00:02:53,439
outgoing incoming link you'll be able to
71
00:02:50,159 --> 00:02:54,560
see our comment in the outgoing section
72
00:02:53,439 --> 00:02:55,840
for
73
00:02:54,560 --> 00:02:58,800
both
74
00:02:55,840 --> 00:03:00,640
repositories here
75
00:02:58,800 --> 00:03:03,840
the git repository window also supports
76
00:03:00,639 --> 00:03:06,238
network operations so i can click on
77
00:03:03,840 --> 00:03:08,800
push to push my changes that i have just
78
00:03:06,239 --> 00:03:08,800
committed
79
00:03:09,439 --> 00:03:14,639
and i get the confirmation
80
00:03:12,080 --> 00:03:17,120
the get repository window also supports
81
00:03:14,639 --> 00:03:20,079
creating new branches and even checking
82
00:03:17,120 --> 00:03:21,519
out the branch which is becoming quicker
83
00:03:20,080 --> 00:03:24,480
as we have been improving the
84
00:03:21,519 --> 00:03:26,959
performance of visual studio
85
00:03:24,479 --> 00:03:29,199
i can also focus on a single repository
86
00:03:26,959 --> 00:03:31,439
and push my changes through the get
87
00:03:29,199 --> 00:03:32,958
changes window on the side
88
00:03:31,439 --> 00:03:35,680
the second feature i'd like to
89
00:03:32,959 --> 00:03:37,920
demonstrate is about how easy it is to
90
00:03:35,680 --> 00:03:39,439
create git repositories in visual studio
91
00:03:37,919 --> 00:03:42,318
2022
92
00:03:39,439 --> 00:03:43,840
and add your code to github and or azure
93
00:03:42,318 --> 00:03:45,679
devops
94
00:03:43,840 --> 00:03:48,400
for those of you who haven't been using
95
00:03:45,680 --> 00:03:51,040
git let me just say that tracking your
96
00:03:48,400 --> 00:03:53,120
progress with git is very helpful even
97
00:03:51,039 --> 00:03:55,120
if if you are the only developer in your
98
00:03:53,120 --> 00:03:57,438
organization and don't need to
99
00:03:55,120 --> 00:04:01,280
collaborate with a large team
100
00:03:57,438 --> 00:04:03,519
okay as we can see here visual studio is
101
00:04:01,280 --> 00:04:06,878
providing me with an option to add to
102
00:04:03,519 --> 00:04:08,640
source control in the status bar
103
00:04:06,878 --> 00:04:11,280
indicating that
104
00:04:08,639 --> 00:04:12,238
this new project i'm on is not tracked
105
00:04:11,280 --> 00:04:14,080
by
106
00:04:12,239 --> 00:04:16,720
source control if we go to the get
107
00:04:14,080 --> 00:04:18,959
changes window i also get an option to
108
00:04:16,720 --> 00:04:21,120
create a git repository there
109
00:04:18,959 --> 00:04:23,840
and for those who are new to get i
110
00:04:21,120 --> 00:04:26,240
highly recommend that you view our
111
00:04:23,839 --> 00:04:29,119
documentation
112
00:04:26,240 --> 00:04:31,040
now let's get started by creating our
113
00:04:29,120 --> 00:04:34,478
get repository
114
00:04:31,040 --> 00:04:35,919
by clicking the create repository button
115
00:04:34,478 --> 00:04:37,918
as we can see visual studio
116
00:04:35,918 --> 00:04:40,319
pre-populates our
117
00:04:37,918 --> 00:04:42,000
create repository dialog
118
00:04:40,319 --> 00:04:44,719
and the only thing we need to worry
119
00:04:42,000 --> 00:04:49,839
about is provide an optional description
120
00:04:44,720 --> 00:04:52,080
and then create and push to to github
121
00:04:49,839 --> 00:04:54,000
it is important to note here that by
122
00:04:52,079 --> 00:04:56,639
default the repository you are going to
123
00:04:54,000 --> 00:04:58,478
be creating is going to be private
124
00:04:56,639 --> 00:05:00,160
which means that you are the only one
125
00:04:58,478 --> 00:05:02,399
who is going to be able to view your
126
00:05:00,160 --> 00:05:04,720
code
127
00:05:02,399 --> 00:05:07,439
if you would like to to create a good
128
00:05:04,720 --> 00:05:10,639
repository on azure devops instead just
129
00:05:07,439 --> 00:05:12,800
use the azure devops option on the side
130
00:05:10,639 --> 00:05:13,840
which will also pre-populate the form
131
00:05:12,800 --> 00:05:16,000
for you
132
00:05:13,839 --> 00:05:18,079
the only thing you'll need to
133
00:05:16,000 --> 00:05:20,959
adjust is the project that you would
134
00:05:18,079 --> 00:05:23,680
like to create a new repository to and
135
00:05:20,959 --> 00:05:26,000
then create and push
136
00:05:23,680 --> 00:05:28,720
as we can see now visual studio is
137
00:05:26,000 --> 00:05:31,360
working on creating and pushing
138
00:05:28,720 --> 00:05:32,240
our code to azure devops
139
00:05:31,360 --> 00:05:34,800
and
140
00:05:32,240 --> 00:05:37,519
once that is done i get a confirmation
141
00:05:34,800 --> 00:05:40,240
that that it has been a
142
00:05:37,519 --> 00:05:43,038
successfully created and pushed
143
00:05:40,240 --> 00:05:44,800
i hope you found this talk useful
144
00:05:43,038 --> 00:05:47,120
feel free to view other talks about
145
00:05:44,800 --> 00:05:51,280
visual studio 2022
146
00:05:47,120 --> 00:05:51,280
thank you and have a wonderful day
9918
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.