vscode-sftp icon indicating copy to clipboard operation
vscode-sftp copied to clipboard

Upload Files from Git commit

Open mau-87 opened this issue 3 years ago • 4 comments

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!

mau-87 avatar Feb 01 '22 16:02 mau-87

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 ?

Natizyskunk avatar Feb 09 '22 01:02 Natizyskunk

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 avatar Feb 09 '22 15:02 mau-87

@mau-87, How are you selecting your commits to upload ?

The only way I think right now to do it is to :

  1. Git commit your desired commits (commit 1 & 2) whith the sftp extension activated.
  2. Deactivate the extension to commit the commit(s) that you don't want to upload (commit 3).
  3. Then finally reactivate then extension to commit your last commit (commit 4).

Really not sure that this work 😕

Natizyskunk avatar Sep 26 '22 20:09 Natizyskunk

Current I use the "autoUpload" for the dev site and for the test/prod site I use "Local to Remote"

mau-87 avatar Oct 07 '22 14:10 mau-87