开发者

TortoiseSVN commit shortcut

开发者 https://www.devze.com 2022-12-24 16:16 出处:网络
I find it tedious when everytime I need to commit a file.The process goto windows explorer window, right click directory, then click \'Commit\'... and then the tortoisesvn commit window.

I find it tedious when everytime I need to commit a file.The process goto windows explorer window, right click directory, then click 'Commit'... and then the tortoisesvn commit window.

Anyone know of any shortcut to do this? Maybe press a keyboard shortcut to commit in开发者_运维技巧stead of having to right click directory then click commit?

Thank you for saving my productivity!


See the chapter "automating TortoiseSVN" in the docs.

You could create a shortcut to TortoiseProc.exe and add the command line params there, e.g.:

TortoiseProc.exe /command:commit /path:"path\to\your\workingcopy"


I use autohotkey to do this.

Here are some instructions if you want to use it:

  • Download and install autohotkey.
  • Put the following text in a text file called TortoiseSVN.ahk:
; Change your hotkey here
+`::

Run TortoiseProc.exe /command:commit /path:"<path-to-your-working-copy>"

return
  • The hotkey in this script is set to shift + tilde. Look at the autohotkey docs to help you choose a different hotkey.
  • Make sure you put the path to your SVN working directory in the script.
  • Put the text file into your startup directory so that it will run when windows restarts.
  • To run the script now, just double-click the text file (providing you have already installed autohotkey).

You should now be able to use shift + tilde (or whatever your choosen hotkey) to invoke the TortoiseSVN commit dialog.


You can use svn through the command-line, the way that I guess most linux-type-people do: http://www.sliksvn.com/en/download/

If you happen to have a command-line window open most of the time (e.g. for running Ant tasks or something) then this might be a faster way. You would just type:

svn commit

or even

svn ci

(the ci stands for "check in")


If you're in visual studio, you can use AnkhSVN


Extending on Stefan's answer, I found one of the easiest ways (or so I think) to use shortcut keys to commit.

QTTabBar (sort of like an add-on for Explorer) has the ability to execute any application passing arguments.

The arguments can be selected folder, selected file etc.

I wrote a blog post describing how to use this functionality to commit/update or do just about anything.


Yes. You can use window explorer Shortcuts. Just open code folder in explorer and use below:

Commit: alt + F + C
update: alt + F + U
Check for updates: alt + F + T + F

So you can press above keyboard shortcuts to commit instead of having to right click directory then click commit. These shortcuts are quite handy, since you do not need to create any batch or script file.

0

精彩评论

暂无评论...
验证码 换一张
取 消