Spaces:
Running
Running
glitz-dev commited on
Commit ·
aa77f96
1
Parent(s): 3e42629
Save current changes before switching
Browse files
README.md
CHANGED
|
@@ -13,10 +13,20 @@
|
|
| 13 |
4. Set **Role = Write**
|
| 14 |
5. Copy the generated token.
|
| 15 |
6. logout and login in hf,
|
| 16 |
-
- huggingface-cli logout
|
| 17 |
-
- huggingface-cli login
|
| 18 |
-
- paste key + enter
|
| 19 |
7. confirm identity
|
| 20 |
-
- huggingface-cli whoami
|
| 21 |
8. try to push again
|
| 22 |
-
- git push hf main --force
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
4. Set **Role = Write**
|
| 14 |
5. Copy the generated token.
|
| 15 |
6. logout and login in hf,
|
| 16 |
+
- huggingface-cli logout (deprecated) / hf auth logout
|
| 17 |
+
- huggingface-cli login (deprecated) / hf auth login
|
| 18 |
+
- paste key + enter / $env:HF_TOKEN = "token-no"
|
| 19 |
7. confirm identity
|
| 20 |
+
- huggingface-cli whoami (deprecated)/ hf auth whoami
|
| 21 |
8. try to push again
|
| 22 |
+
- git push hf main --force
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
git remote set-url origin https://<YOUR_USERNAME>:<YOUR_TOKEN>@huggingface.co/spaces/<YOUR_USERNAME>/<YOUR_REPO>.git
|
| 26 |
+
|
| 27 |
+
To check root folder in Repo -> git rev-parse --show-toplevel
|
| 28 |
+
|
| 29 |
+
To fetch remote branches -> git fetch hf
|
| 30 |
+
To check remote branches -> git branch -r
|
| 31 |
+
Switch to main branch -> git checkout main
|
| 32 |
+
|