I use WinSCP on my PC as "the view" for my RPi development. Left hand pane are the files on my PC git directory, and the right pane are the files on my RPi. WinSCP allows you to sync in either direction.
Double-click on a file in the RPi pane and Notepad++ opens the file. Do your edits and click save and it updates on the RPi. Test program on RPi. When you are happy, do a WinSCP sync local and the changed files are copied to the PC's git directory. At the appropriate time push to GitLab.
I have a backup script on the RPi to backup the files. Also a "rcp" script to copy files to other RPi's on my network.
There are a few gotchas to work out.
1. Unix/DOS EOL - WinSCP, Notepad++ and SmartGit automatically handle this but it takes a while to work out.
2. Time stamps need to be co-ordinated between PC and RPi. Daylight saving sometimes causes issues.
3. If you leave your PC for a while the connection to the RPi is dropped. You need to enter your password numerous times to restore connection.
This process seems logical and works for me, but the other guys in our team think I'm crazy!!! YMMV.
* Raspberry Pi is a trademark of the Raspberry Pi Foundation