Spaces:
Sleeping
Sleeping
shyam gupta
commited on
Commit
β’
bfbe67b
1
Parent(s):
d78d3f4
Update README.md
Browse files
README.md
CHANGED
@@ -21,7 +21,11 @@ self-note->
|
|
21 |
When comparing Git pull vs fetch, Git fetch is a safer alternative because it pulls in all the commits from your remote but doesn't make any changes to your local files. On the other hand, Git pull is faster as you're performing multiple actions in one β a better bang for your buck.
|
22 |
|
23 |
`git fetch`
|
|
|
24 |
`git push -f origin main`
|
|
|
25 |
`git remote rm origin`# for removing remote repo
|
|
|
26 |
`git remote add origin [repo link]` # for adding new repo as remote
|
|
|
27 |
`git remote -v` # to check your remote repo URL path
|
|
|
21 |
When comparing Git pull vs fetch, Git fetch is a safer alternative because it pulls in all the commits from your remote but doesn't make any changes to your local files. On the other hand, Git pull is faster as you're performing multiple actions in one β a better bang for your buck.
|
22 |
|
23 |
`git fetch`
|
24 |
+
|
25 |
`git push -f origin main`
|
26 |
+
|
27 |
`git remote rm origin`# for removing remote repo
|
28 |
+
|
29 |
`git remote add origin [repo link]` # for adding new repo as remote
|
30 |
+
|
31 |
`git remote -v` # to check your remote repo URL path
|