Multiple files under a single commit through GitHub API

549 views Asked by At

Each commit contains 2 files uploaded to GitHub, we have a few of such commits. we have only one branch (Main), We need to bound these commits with a branch so that we can view all files that were pushed. The problem comes when we attach a commit with a branch, my new commit deletes every change made by my previous commit

   commit 1 : assets/bg1.png
           uploads/profile1.png

   commit 2 : assets/bg2.png
           uploads/profile2.png

For now, if I attach commit-2 with the main branch, It deletes changes made by commit 1 I need both commit changes available in the Git branch

Steps that I followed

0

There are 0 answers