is there some kind of function in gitbach that translates a windows folderpath to the…
Jump to turn (17)
- 1is there some kind of function in gitbach that translates a windows folderpath t
- 2That ix exactly what I needed. Thank you
- 3I have a full filepath in a linux bash variable. How can I get the folder that t
- 4I need a bash command to remove the extension from a filename
- 5I am trying to run gitbash command from windows command prompt with the followin
- 6what is the bash version of the windows command pause
- 7can is run a linux sh file on windows using gitbash?
- 8I don't want to open gitbash manually. I want a windows command to run gitbash a
- 9and if I have arguments?
- 10how do aruments work in windows batch files?
- 11and variables?
- 12how can I set a result of a command as a variable?
- 13This is the command I want to use "C:\Program Files\Git\usr\bin\cygpath.exe" C:\
- 14variable name is FILEPATH, can you generate it again?
- 15how this line would be in a script. and the C:\melo\sanyi.txt part will come as
- 16artifactory\upload.bat C:\melo\sanyi.zip this gave me back %1
- 17now it works. thanks. but I don't want this mush output lines. how do I hide the
- User
is there some kind of function in gitbach that translates a windows folderpath to the gitbash linux-based one?
- Assistant
Yes, there is a function in Git Bash that can translate a Windows folder path to a Git Bash Linux-based path.
The function is called
cygpath. It is a utility command that is used to convert Windows-style paths to Unix-style paths and vice versa.To use the
cygpathcommand in Git Bash, open the Git Bash terminal and typecygpathfollowed by the Windows-style path that you want to convert. For example, to convert the Windows-style pathC:\Users\Username\Documentsto a Git Bash Linux-style path, you would type:pythoncygpath "C:\Users\Username\Documents"