Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wesweb_linux_terminal [2020-10-28 10:29] Joakim Forsgren |
wesweb_linux_terminal [2020-10-28 11:26] Joakim Forsgren |
||
---|---|---|---|
Line 17: | Line 17: | ||
d. Efter detta ska ni ange gitlab som remote på ert wesweb-repro och skicka upp allt ni gjort till gitlab. | d. Efter detta ska ni ange gitlab som remote på ert wesweb-repro och skicka upp allt ni gjort till gitlab. | ||
+ | |||
+ | == ex. Push an existing folder== | ||
+ | <code git> | ||
+ | cd existing_folder | ||
+ | git init | ||
+ | git remote add origin git@gitlab.com: | ||
+ | git add . | ||
+ | git commit -m " | ||
+ | git push -u origin master | ||
+ | </ | ||
+ | |||
+ | == ex. Push an existing Git repository== | ||
+ | <code git> | ||
+ | cd existing_repo | ||
+ | git remote rename origin old-origin | ||
+ | git remote add origin git@gitlab.com: | ||
+ | git push -u origin --all | ||
+ | git push -u origin --tags | ||
+ | </ |