Creating new branch and update with new files in existing repository

Hi I’m new to git. I am working in a startup company for the last couple of months. Our previous developers created & dumped in gitlab project. Now after 4 months of development we want to upload our code in a sub branch. I’ve created a branch but it copies old code from master. I’m unable to replace all the code from my local machine to remote. Is there any way I can dump my code in a separate branch in that repository? I’m tried of surfing the internet for a solution. Please help me. :disappointed:


Please share on which gitlab version you are working. and also let me know more about your requirement as
which issue you are facing while copying the code from local to remote?
which steps you are following for this process?