Skip to content

Commit 8e67049

Browse files
authored
Update LogIn with VSCode.md
1 parent 64ba46c commit 8e67049

1 file changed

Lines changed: 179 additions & 0 deletions

File tree

LogIn with VSCode.md

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,182 @@ git config user.email "arkadipXXXXX@gmail.com"
128128

129129
📌 Replace `your-repo-name.git` with the actual repo name.
130130

131+
---
132+
---
133+
134+
# 🎯 install a new IDE, and try to push code in another repo, in my GitHub (edge browser)
135+
136+
<img width="1920" height="1080" alt="Screenshot (641)" src="https://github.com/user-attachments/assets/568f51d2-76a0-4785-86a5-60160ffd168b" />
137+
138+
I basically want **WebStorm** to push to your GitHub account (`akashdip2001`) using a **Personal Access Token (PAT)**, without interfering with my brother’s VS Code setup (`arkadip2007` login with Brave browser).
139+
140+
I already did this for IntelliJ IDEA, WebStorm will work almost the same because they share the same JetBrains settings style.
141+
We just need to make sure **WebStorm is using your GitHub account, not your brother’s**.
142+
143+
---
144+
145+
## **Step-by-Step: Set up WebStorm with Personal Access Token**
146+
147+
### ✅ 1 & 2. **Just click the `repo` logo at left side and click Login, and the Edge open and clock `Login`.** or you use Access Tocken ...
148+
149+
<details>
150+
<summary style="opacity: 0.85;"><b>Login with Access Tocken</b></summary><br>
151+
152+
### **1. Generate a Personal Access Token (if you don’t already have one)**
153+
154+
1. Log in to [GitHub](https://github.com/) with your `akashdip2001` account.
155+
2. Go to **Settings → Developer settings → Personal access tokens → Tokens (classic)**.
156+
3. Click **Generate new token → Generate new token (classic)**.
157+
4. Set:
158+
159+
* **Note:** "WebStorm Access"
160+
* **Expiration:** Choose 90 days or "No expiration" if you want permanent.
161+
* **Scopes:**
162+
163+
*`repo` (Full control of private repositories)
164+
*`workflow` (optional, for GitHub Actions)
165+
5. Click **Generate token** and copy it somewhere safe.
166+
167+
---
168+
169+
### **2. Configure WebStorm to Use Your GitHub Account**
170+
171+
1. Open **WebStorm**.
172+
2. Go to **File → Settings → Version Control → GitHub** (or on Mac: `WebStorm → Preferences`).
173+
3. Click the **`+`** button → **Log In via Token**.
174+
4. Paste your **Personal Access Token**.
175+
5. Press **Log In**.
176+
177+
---
178+
179+
</details>
180+
181+
### **3. Make Sure the Repo Uses Your Account**
182+
183+
1. Open the project in WebStorm.
184+
2. Go to **File → Settings → Version Control → Git**.
185+
3. Check the **Path to Git executable** is correct (usually `C:\Program Files\Git\bin\git.exe`).
186+
4. Open the terminal in WebStorm and run:
187+
188+
```bash
189+
git config user.name "akashdip2001"
190+
git config user.email "your-email@example.com"
191+
```
192+
193+
*(Use the same email as your GitHub account.)*
194+
5. Check the remote URL:
195+
196+
```bash
197+
git remote -v
198+
```
199+
200+
<img width="1828" height="486" alt="Screenshot (643)" src="https://github.com/user-attachments/assets/b842ce28-0769-4246-b4a0-6d11114898fd" />
201+
202+
If it shows your brother’s username, change it:
203+
204+
```bash
205+
git remote set-url origin https://github.com/akashdip2001/YourRepoName.git
206+
```
207+
208+
---
209+
210+
### **4. Test Push**
211+
212+
1. Make a small change.
213+
2. Commit.
214+
3. Click **Push** in WebStorm.
215+
4. It should push without asking for credentials.
216+
217+
---
218+
219+
## ❌ Problem Not solve, Access Denide.
220+
221+
### change the local git account.
222+
223+
```bash
224+
git config user.name "akashdip2001"
225+
git config user.email "your-email@example.com"
226+
```
227+
228+
**inside your project folder** (without the `--global` flag), it will only set your Git identity for **that specific repository**, not for all repos or for VS Code.
229+
230+
<img width="1920" height="1080" alt="Screenshot (645)" src="https://github.com/user-attachments/assets/66f50297-8192-41e3-91c8-a380ef438d53" />
231+
232+
---
233+
234+
## ❌⚠️ Problem not solve
235+
236+
I see what’s happening — you updated your `user.name` and `user.email`, but the push is **still using your brother’s GitHub login** (Arkadip2007) because your Git credentials are cached in Windows Credential Manager.
237+
238+
The `403` means GitHub sees that:
239+
240+
1. You’re trying to push to `akashdip2001/JavaScript.git`
241+
2. But your stored credentials are for **Arkadip2007**
242+
3. That account doesn’t have permission, so GitHub rejects it.
243+
244+
---
245+
246+
### **Fix: Force WebStorm to Ask for Your PAT**
247+
248+
#### 1️⃣ Remove old credentials
249+
250+
* Open **Windows Credential Manager**
251+
(Press `Win + S` → search “Credential Manager” → Open → Click **Windows Credentials**)
252+
* Find anything that starts with:
253+
254+
```
255+
git:https://github.com
256+
```
257+
258+
or
259+
260+
```
261+
github.com
262+
```
263+
* Remove them all.
264+
265+
<p align="center">
266+
<img src="https://github.com/user-attachments/assets/78683364-911f-4bd9-977f-330da064d1ee" width="33%" />
267+
<img src="https://github.com/user-attachments/assets/44a85edd-504a-4225-af21-f6837b7db071" width="33%" />
268+
<img src="https://github.com/user-attachments/assets/e3a22a74-0380-4663-8be0-7c7ed1dc731e" width="33%" />
269+
</p>
270+
271+
---
272+
273+
#### 2️⃣ Update remote URL to use HTTPS
274+
275+
Run this in WebStorm terminal:
276+
277+
```bash
278+
git remote set-url origin https://github.com/akashdip2001/JavaScript.git
279+
```
280+
281+
---
282+
283+
#### 3️⃣ Push & Enter PAT
284+
285+
Now try:
286+
287+
```bash
288+
git push
289+
```
290+
291+
It will ask for **Username** and **Password**:
292+
293+
* **Username**`akashdip2001`
294+
* **Password** → paste your **Personal Access Token** (from GitHub)
295+
296+
<p align="center">
297+
<img src="https://github.com/user-attachments/assets/a7aad503-ec17-40d5-b061-29756e9bf16a" width="24.5%" />
298+
<img src="https://github.com/user-attachments/assets/613d5733-6f9c-4df9-bccb-594896ecc800" width="24.5%" />
299+
<img src="https://github.com/user-attachments/assets/894fd3da-2696-4814-88cf-d42c9b4bd5a0" width="24.5%" />
300+
<img src="https://github.com/user-attachments/assets/6d9a6e29-ae14-4b9c-9faf-2795af6b9644" width="24.5%" />
301+
</p>
302+
303+
<p align="center">
304+
<img src="https://github.com/user-attachments/assets/17ecfe6a-7545-4805-a268-0b6fad1e58f1" width="47%" />
305+
<img src="https://github.com/user-attachments/assets/e07b63c9-b732-4adc-ac64-9792ee923efb" width="47%" />
306+
</p>
307+
308+
309+

0 commit comments

Comments
 (0)