Difference between revisions of "Gitlab"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <pre> | ||
+ | git init | ||
+ | git remote add origin http://gitrepo:3000/maddog/laptop.git | ||
+ | git remote -v | ||
+ | git config user.email "Add Email Address Here" | ||
+ | git add . | ||
+ | git commit -m "Initial backup of configs" | ||
+ | git push -u origin master | ||
+ | </pre> | ||
===Add new or update file:=== | ===Add new or update file:=== |
Latest revision as of 07:46, 16 October 2025
git init git remote add origin http://gitrepo:3000/maddog/laptop.git git remote -v git config user.email "Add Email Address Here" git add . git commit -m "Initial backup of configs" git push -u origin master
Add new or update file:
git add makeInit
Commit a file:
git commit -m "Comment"
Push file to gitlab:
git push -u {branch}