Difference between revisions of "Gitlab"

From HyperSecurity Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
<pre>
 +
git init
 +
git remote add origin http://gitrepo:3000/maddog/laptop.git
 +
git remote -v
 +
git config user.email "maddog187@ps2traders.com"
 +
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:===

Revision as of 07:28, 16 October 2025

git init
git remote add origin http://gitrepo:3000/maddog/laptop.git
git remote -v
git config user.email "maddog187@ps2traders.com"
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}