Advertisement
Guest User

some batch code to reset the source origin of clones in git

a guest
Jul 25th, 2018
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. :resetOrigin
  2. rem change into directory and reset origin
  3. for /D %%d in (*) do (
  4. cd %%d
  5. echo ===========================================
  6. echo looking at %%d
  7. git remote set-url origin https://notabug.org/tenplus1/%%d.git
  8. echo done with https://notabug.org/tenplus1/%%d.git
  9. cd ..
  10. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement