Get the git url of current repo in clipboard
Lot of times, I just want to copy the git url to clipboard. This is so common in my flow of work that I created an alias for it. Here it is:
alias git-url="cat .git/config|awk '/url/ {print $3}'|xclip -i -selection clipboard"
Related Articles:
- 2019/12/02 i3 – show mapped hotkeys
- 2016/04/04 ssh – remove offending key.
- 2019/12/16 Script to try various themes from kitty terminal
- 2019/07/15 Check your session type – wayland or X11
- 2019/07/08 Add files to dropbox with single curl command
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.