You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsoft-edge/webview2/samples/webview2apissample.md
+6-18Lines changed: 6 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ This sample uses C++ and HTML/CSS/JavaScript in the WebView2 environment.
23
23
24
24
**WebView2APISample** showcases a selection of WebView2's event handlers and API methods that allow a native Win32 application to directly interact with a WebView2 control and vice versa.
25
25
26
-

This sample and its solution file are unique: it contains a copy of other samples, in Solution Explorer.
29
29
@@ -101,7 +101,7 @@ If you want to open this sample by using Visual Studio 2017:
101
101
1. If not opened already, open a git bash command prompt: Press the **Windows** key, and then type **git bash**.
102
102
103
103
104
-
**Fetch and pull commits**
104
+
**Pull commits**
105
105
106
106
1. Switch to the cloned repo directory:
107
107
@@ -111,36 +111,24 @@ If you want to open this sample by using Visual Studio 2017:
111
111
112
112
Substitute the path where you cloned the **WebView2Samples** repo to.
113
113
114
-
1. Fetch the latest repo information:
115
-
116
-
```
117
-
git fetch
118
-
```
119
-
120
114
1. Pull the latest commits to your local copy of the repo:
121
115
122
116
```
123
117
git pull
124
118
```
125
119
126
120
127
-
**Create a working branch and switch to it**
128
-
129
-
1. Create a working branch:
130
-
131
-
```
132
-
git branch test
133
-
```
121
+
**Create a working branch**
134
122
135
-
1.Switch to the working branch:
123
+
1.Create a working branch and switch to it:
136
124
137
125
```
138
-
git checkout test
126
+
git checkout -b test
139
127
```
140
128
141
129
Returns: `Switched to branch 'test'`
142
130
143
-
You are now free to modify the code in your working branch, without altering the code that's in the "main" branch of the repo. Later you might want to switch back to the "main" branch, or create a different branch based off the "main" branch.
131
+
You are now free to modify the code in your working branch, without altering the code that's in the "main" branch of the repo. Later you might want to switch back to the "main" branch, for example to pull new commits, or create a different branch based off the "main" branch.
0 commit comments