Prodigious Git Fresco Play Hands-on Solution (Updated 2024)
Disclaimer: The main motive to provide this solution is to help and support those who are unable to do these courses due to facing some issue and having a little bit lack of knowledge. All of the material and information contained on this website is for knowledge and education purposes only.
Try to understand these solutions and solve your Hands-On problems. (Not encourage copy and paste these solutions)
Prodigious Git Fresco Play Hands-on Solution (Updated 2024)
1. Prodigious Git/1. Committing Files.txt
1 cd test
2 git init
create hello world.js
4 git log
5 git add .
6 git commit -m "msg"
create .gitignore
7 git add .
8 git commit -m "msg"
2. Prodigious Git/1. Try it Out - Branch and Merge Conflicts.txt
cd test
git branch feature1
git branch feature2
git checkout feature1
### ( add print('hello people'))####
git add .
git commit -m "m"
git checkout master
git merge feature1
git checkout feature2
### ( add print('keep playing'))####
git add .
git commit -m "m"
cd ..
cd quotes
###add (My life is my messge. Mahatma Gandhi)####
git add .
git commit -m "m"
git pull origin master --allow-unrelated-histories
git checkout --theirs Quotes.txt
git add .
git commit -m "m"
git push origin master
3. Prodigious Git/Try it Out Rebase Conflict.txt
4 git clone .assessment/remote
5 cd remote
6 ls
#####edit check_number.py####
7 git add .
8 git commit -m "m"
9 cd ..
14 bash .fetch_sh
15 cd remote
17 git diff master origin/master
20 git fetch origin
21 git rebase origin/master
###resolve conflict####
27 git add .
28 git rebase --continue
29 git push origin master
4. Prodigious Git/Try it Out - Undo Changes.txt
1 test
2 cd test
3 nano hello.py
4 git log --oneline
5 ###########add t to print in hello.py###########
6 git add .
7 git commit --amend -m "an updated commit message"
###########add bug to file in hello.py###########
7 git diff HEAD
8 git checkout hello.py
###########add bug to file in hello.py###########
9 git status
11 git add .
12 git diff --cached
13 git reset
14 git status
15 git reset --hard HEAD
###########add bug to file to print in hello.py###########
16 git add .
17 git commit -m "m"
18 git log --oneline
19 git show HEAD
20 git revert HEAD
21 git show HEAD
54 git revert HEAD...HEAD~3 --no-edit
55 cat hello.py
56 git log --oneline
57 git push origin HEAD
5. Prodigious Git/Working on Remote.txt
1 cd test
2 ls
3 git init
4 git remote add origin ../.assessment/remote
5 ls ../.assessment/remote
6 git add .
7 git commit -m "m"
8 git push remote origin
10 git push origin master
11 cd ..
12 bash .clone_sh
13 cd test
15 git pull origin master
16 cd ..
17 cd clone
18 git clone https://github.com/frescoplaylab/hello-world
Post a Comment