DevOps課程-Configuration Management with Ansible 10
先開一個私有Repo:
在本機的ansible專案內開git bash,執行以下指令:
#git 初始化:
git init#git連動遠端Repo:
git remote add origin https://github.com/JavaNoobPig/ansible.git#將當前Code內容加到Staging:
git add .#commit Staging中的Code:
git commit -m "1st simple Ansible"#切換local的branch名稱:
git branch -M first_simple#推到遠端Repo,並且使用同樣名稱first_simple(過程要打帳號/token):
git push -u origin first_simple
過程畫面:
後面會陸續把新的放進來