https://github.com/praths71018/pes2ug21cs392_hello_world
Cloud computing lab for building a CI( Continuous Integration) Pipeline with Github Actions
https://github.com/praths71018/pes2ug21cs392_hello_world
github github-actions github-workflows
Last synced: about 1 month ago
JSON representation
Cloud computing lab for building a CI( Continuous Integration) Pipeline with Github Actions
- Host: GitHub
- URL: https://github.com/praths71018/pes2ug21cs392_hello_world
- Owner: praths71018
- Created: 2024-03-07T23:42:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T04:37:18.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T20:42:21.692Z (over 1 year ago)
- Topics: github, github-actions, github-workflows
- Language: C++
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting started with GitHub
## How to push a repository for 1st time in Github
1. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git init```
>hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m
Initialized empty Git repository in /Users/prathamshetty/Desktop/Sem 6/Cloud Computing/Lab/Assignment 4/Github Actions A4/.git/
2. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git checkout -b main ```
>Switched to a new branch 'main'
3. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git remote add origin https://github.com/praths71018/PES2UG21CS392_hello_world.git ```
4. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git add . ```
5. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git commit -m "Describe this commit" ```
>[main (root-commit) 06e2001] Describe this commit
2 files changed, 11 insertions(+)
create mode 100644 CMakeLists.txt
create mode 100644 main.cpp
6. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git log```
>commit 06e200114717d598cb6a14e0f499cb642771b3c0 (HEAD -> main)
Author: Pratham
Date: Fri Mar 8 05:22:55 2024 +0530
Describe this commit
7. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git push -f origin main ```
>Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 464 bytes | 464.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/praths71018/PES2UG21CS392_hello_world.git
* [new branch] main -> main
prathamshetty@Prathams-MacBook-Air Github Actions A4 %
## How to push changes in local system to github
1. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git add .```
2. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git commit -m "Modified commit" ```
>[main 877e5d0] Modified commit
1 file changed, 1 insertion(+), 1 deletion(-)
3. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git push -f origin main ```
>Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 285 bytes | 285.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/praths71018/PES2UG21CS392_hello_world.git
34aa598..877e5d0 main -> main
## How to pull changes in Github to local system
1. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git fetch origin```
>remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 11 (delta 2), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), 4.01 KiB | 456.00 KiB/s, done.
From https://github.com/praths71018/PES2UG21CS392_hello_world
06e2001..c36a568 main -> origin/main
2. prathamshetty@Prathams-MacBook-Air Github Actions A4 % ```git merge origin/main```
>Updating 06e2001..c36a568
Fast-forward
.github/workflows/main.yml | 20 ++++++++++++++++++++
README.md | 41 +++++++++++++++++++++++++++++++++++++++++
main.cpp | 2 +-
3 files changed, 62 insertions(+), 1 deletion(-)
create mode 100644 .github/workflows/main.yml
create mode 100644 README.md
## How to branch Repository
1. (anaconda3) prathamshetty@Prathams-MacBook-Air Thermafever % ```git branch praths-mods```
2. (anaconda3) prathamshetty@Prathams-MacBook-Air Thermafever % ```git checkout praths-mods```
> A .DS_Store
M src/demo.ipynb
Already on 'praths-mods'
3. (anaconda3) prathamshetty@Prathams-MacBook-Air Thermafever % ```git branch```
> main
praths-mods
4. (anaconda3) prathamshetty@Prathams-MacBook-Air Thermafever % ```git status```
> On branch praths-mods
Changes to be committed:
(use "git restore --staged ..." to unstage)
new file: .DS_Store
modified: src/demo.ipynb
5. (anaconda3) prathamshetty@Prathams-MacBook-Air Thermafever % ```git commit -m "Thermal"```
>[praths-mods ae60234] Thermal
2 files changed, 546 insertions(+), 53 deletions(-)
create mode 100644 .DS_Store
6. (anaconda3) prathamshetty@Prathams-MacBook-Air Thermafever % ```git push -f origin praths-mods```
> Enumerating objects: 40, done.
Counting objects: 100% (40/40), done.
Delta compression using up to 8 threads
Compressing objects: 100% (38/38), done.
Writing objects: 100% (40/40), 2.33 MiB | 3.29 MiB/s, done.
Total 40 (delta 6), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (6/6), done.
remote:
remote: Create a pull request for 'praths-mods' on GitHub by visiting:
remote: https://github.com/JiteshNayak2004/Thermafever/pull/new/praths-mods
remote:
To https://github.com/JiteshNayak2004/Thermafever
[new branch] praths-mods -> praths-mods
(anaconda3) prathamshetty@Prathams-MacBook-Air Thermafever %