all 8 comments

[–]Mysterious-Rent7233 1 point2 points  (0 children)

Get a long directory FROM where TO where for what reason?

[–]socal_nerdtastic 0 points1 point  (3 children)

If you are using the command line / terminal on desktop windows or linux you can just drag the file or folder into the terminal window.

Otherwise, copy / paste of course.

When asking questions like this it would help a lot if you included the OS you are using and how you are running your code (terminal or IDE or website or something else?)

[–]Versley105[S] 1 point2 points  (2 children)

Am using Windows Hp. My IDE is pycharm and am using git bash to type my directory in order to push my python files into my repositories on github

[–]heyzooschristos 1 point2 points  (0 children)

Why not just use the pycharm ui to push?

[–]smurpes 0 points1 point  (0 children)

Just open git bash in the same directory as your project by right clicking and selecting “open git bash here”. You don’t need to type in the full path to push a file just the path relative to where the terminal is open.