Difference between revisions of "Gitlab"

From HyperSecurity Wiki
Jump to: navigation, search
 
Line 1: Line 1:
'''Add new or update file:'''
+
 
 +
===Add new or update file:===
 
git add makeInit
 
git add makeInit
  
 
+
===Commit a file:===
'''Commit a file:'''
 
 
git commit -m "Comment"
 
git commit -m "Comment"
  
 
+
===Push file to gitlab:===
'''Push file to gitlab''
 
 
git push -u {branch}
 
git push -u {branch}

Latest revision as of 06:08, 8 July 2020

Add new or update file:

git add makeInit

Commit a file:

git commit -m "Comment"

Push file to gitlab:

git push -u {branch}