DevOps課程-Configuration Management with Ansible 10

建個簡單Git Repo存放

ZONGRU Li
Mar 31, 2022

先開一個私有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

過程畫面:

後面會陸續把新的放進來

--

--

ZONGRU Li
ZONGRU Li

Written by ZONGRU Li

2022/11/17 開源部分個人筆記給LINE "Java程式語言討論區"社群,希望能對社群的技術學習做一點點貢獻.(掩面....記得退訂閱!

No responses yet