I am having trouble using git on my own server. I am having trouble where I add the origin path (remote add) as I am entering the wrong url. By finding out the correct path to the .gi开发者_高级运维t repository on my server, I should be able to enter that into remote add and it should now find the git repository. So, what I would like to know is how can you get the current path of the folder you are browsing via SSH?
Thanks
If the remote host is Unix-like, type pwd.
I use this bash script to copy the path to any directory to clipboard
readlink.sh
readlink -f $1 | xclip -selection clipboard
Usage:
- readlink.sh ./# current directory
- readlink.sh /path/to/somewhere/over/the/rainbow
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论