Skip to content

1 file changed, 1 insertion(+) create mode 100644 payment.js [feature/payments 9f73e19] feat: add stripe integration 0d59f2e (HEAD -> feature/payments, master) HEAD@{0}: reset: moving to HEAD 0d59f2e (HEAD -> feature/payments, master) HEAD@{0}: reset: moving to HEAD ~5 937de81 HEAD@{1}: commit: test: add payment tests e42d6ff HEAD@{2}: commit: fix: handle duplicate webhooks 52172c7 HEAD@{3}: commit: feat: add webhook handler 9f73e19 HEAD@{4}: commit: feat: add stripe integration 83c46e6 HEAD@{5}: commit: feat: add payment module 0d59f2e (HEAD -> feature/payments, master) HEAD@{6}: checkout: moving from master to feature/payments d58ea665f722:/workspace/git-lab# git reset --hard HEAD@{1} HEAD is now at 937de81 test: add payment tests d58ea665f722:/workspace/git-lab# ls README.md payment.js d58ea665f722:/workspace/git-lab# cat payment.js payment v1 payment v2 payment v3 payment v4 payment v5 d58ea665f722:/workspace/git-lab#

Question 2

mkdir -p newrepo cd newrepo git init git checkout -b main echo "initial" > README.md git add . git commit -m "initial commit" git checkout -b develop for i in {1..10}; do echo "feature $i" > "file$i.txt" git add . if [[ $i -eq 3 || $i -eq 5 || $i -eq 8 ]]; then git commit -m "fix: critical bug fix #$i" else git commit -m "feat: work in progress $i" fi done

git cherry-pick 8b030c9 e96ea35 60c706a

Question 3 soluiton

Released under the MIT License.