vscode-sftp
vscode-sftp copied to clipboard
Upload Files from Git commit
Is this a similar or duplicate feature request?
- [ ] I don't know. I will go check it.
- [X] No.
Is your feature request related to a problem? Please describe. No I think it is a new feature but I don't know if is possible.
Describe the solution you'd like Upload Files from a Git commit and only with the changes of a commit. So you can select the commits what you want to upload and SFTP upload only the files of the commits and ignore other changes in the file if that not selected/or commited.
Describe alternatives you've considered
Does this project help you?
- [x] Yes. SFTP IS AWESOME!
Hello @mau-87, If i understand correctly, what you want is that when you are doing a git commit in your local repo you want the sftp extension to automatically upload the committed files on the server. is that correct ?
I mean that I can choose maybe 4 commits and upload only the change of the commits.
example: I choose the commits 1, 2 and 4 and the sftp extension upload the commits but not the change of commit 3. So on the server in the index.php I don't have the navigation but on my local file.
Commit 1 [X] (change index.php) Commit 2 [X] (change index.php and function.php) Commit 3 [ ] (change index.php --> add navigation) Commit 4 [X] (change index.php)
I hope that make it a little bit clear.
@mau-87, How are you selecting your commits to upload ?
The only way I think right now to do it is to :
- Git commit your desired commits (commit 1 & 2) whith the sftp extension activated.
- Deactivate the extension to commit the commit(s) that you don't want to upload (commit 3).
- Then finally reactivate then extension to commit your last commit (commit 4).
Really not sure that this work 😕
Current I use the "autoUpload" for the dev site and for the test/prod site I use "Local to Remote"