Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous 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:25]
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.
  
 +
 +==Push an existing folder==
 +<code git>
 +cd existing_folder
 +git init
 +git remote add origin git@gitlab.com:jfoeduse/vt21.git
 +git add .
 +git commit -m "Initial commit"
 +git push -u origin master
 +</code>
 +
 +==Push an existing Git repository==
 +<code git>
 +cd existing_repo
 +git remote rename origin old-origin
 +git remote add origin git@gitlab.com:jfoeduse/vt21.git
 +git push -u origin --all
 +git push -u origin --tags
 +</code>