Realised in the course of the Bosch AI Talent Accelerator Scholarship Bootcamp, Devops path.
- Establish SSH authentification and connection from AzureCLI to remote GitHub repo
- Terminal Environment: Bash on AzureCLI
- Clone repo to AzureCLI
- Download or prepare the folder containing the source files12
- Create manually a new GitHub repo
- Clone new repo to AzureCLI
- Move the newly created source files' folder to the newly created repo: to permit git commands to act upon/access this folder
- Initialize, verify status, commit and push the folder to this GitHub repo.
Here we go creating the folder and files in Bash 234
mkdir starter_files
cd starter_files/
touch hello.py Makefile requirements.txt test_hello.py
ls
Here is a link to the created repo
git clone [email protected]:Benjamin-Ogunsade/CI-CD-practice.git
Navigate into the remote repo directory45:
cd CI-CD-practice/
ls
Move the created folder into the current directory45:
mv ~/azure-devops/starter_files/ .
ls
It's time to commit (save changes) and push (upload/publish modifications)6:
git init
git status
git add starter_files/
git status
git commit -m "Starter files first commit"
git status
git push
ls
Peradventure you encounter challenges along the way, kindly consult the following resources 1234567
👍 O kaare Omooba 'Deposi n'Ilare n'Ile-ife
Footnotes
-
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax ↩ ↩2
-
https://docs.github.com/en/repositories/working-with-files/managing-files/adding-a-file-to-a-repository ↩ ↩2 ↩3
-
https://docs.github.com/en/repositories/working-with-files/managing-files/creating-new-files ↩ ↩2
-
https://www.earthdatascience.org/courses/intro-to-earth-data-science/open-reproducible-science/bash/bash-commands-to-manage-directories-files/#:~:text=Delete%20a%20Directory%20(%20rm%20%2Dr,%2Dr%20directory%2Dname%20). ↩ ↩2 ↩3 ↩4
-
https://www.tomshardware.com/how-to/delete-directory-or-file-in-linux ↩ ↩2 ↩3
-
https://www.codegrepper.com/code-examples/shell/how+to+push+a+folder+to+github+repository ↩ ↩2
-
https://stackoverflow.com/questions/5667106/how-to-delete-or-change-directory-of-a-cloned-git-repository-on-a-local-computer ↩