Git: Difference between revisions

From wiki
Jump to navigationJump to search
Created page with "Initial git. $git init $git add . $git commit -m "initial upload" $git remote add origin https://gitlab.michaelurrea.com/ansible/roles/name-of-playbook.git $git checkout -b main $git push --set-upstream origin main"
 
No edit summary
 
Line 1: Line 1:
Initial git.
'''Initial git.'''


$git init
$git init


$git add .
$git add .


$git commit -m "initial upload"
$git commit -m "initial upload"


$git remote add origin https://gitlab.michaelurrea.com/ansible/roles/name-of-playbook.git
$git remote add origin https://gitlab.michaelurrea.com/ansible/roles/name-of-playbook.git


$git checkout -b main
$git checkout -b main


$git push --set-upstream origin main
$git push --set-upstream origin main

Latest revision as of 20:53, 13 April 2023

Initial git.

$git init
$git add .
$git commit -m "initial upload"
$git remote add origin https://gitlab.michaelurrea.com/ansible/roles/name-of-playbook.git
$git checkout -b main
$git push --set-upstream origin main