If you want only the remote URL, or if your are not connected to a network that can reach the remote repo: git config -get remote.origin.urlIf you require full output and you are on a network that can reach the remote repo where the origin resides: git remote show originWhen using git clone (from GitHub, or any source repository for that matter) the default name for the source of the clone is 'origin'. Using git remote show will display the information about this remote name. The first few lines should show: C:UsersjaredparVsVim git remote show origin.
The Git username is not the same as your GitHub username. You can change the name that is associated with your Git commits using the git config command. The new name you set will be visible in any future commits you push to GitHub from the command line. Sorry something has gone wrong There is a problem progressing your order, please click okay to reload the page and try again.
remote originFetch URL: [email protected]:jaredpar/VsVim.gitPush URL: [email protected]:jaredpar/VsVim.gitHEAD branch: masterRemote branches:If you want to use the value in the script, you would use the first command listed in this answer. With Git 2.7 (release January 5th, 2015), you have a more coherent solution using git remote: git remote get-url origin(nice pendant of git remote set-url origin )See (16 Sep 2015) by.(Merged by in, 05 Oct 2015): remote: add get-url subcommandExpanding insteadOf is a part of ls-remote -url and there is no wayto expand pushInsteadOf as well.Add a get-url subcommand to be able to query both as well as a way to get all configured URLs. Get-url:Retrieves the URLs for a remote.Configurations for insteadOf and pushInsteadOf are expanded here.By default, only the first URL is listed. With ' -push', push URLs are queried rather than fetch URLs. With ' -all', all URLs for the remote will be listed.Before git 2.7, you had: git config -get remote.REMOTE.urlgit ls-remote -get-url REMOTEgit remote show REMOTE. To summarize, there are at least four ways:(The following was tried for the official Linux repository)Least information: $ git config -get remote.origin.url$ git ls-remote -get-urlinformation: $ git remote -vorigin (fetch)origin (push)Even more information: $ git remote show origin.
remote originFetch URL: URL: branch: masterRemote branch:master trackedLocal branch configured for 'git pull':master merges with remote masterLocal ref configured for 'git push':master pushes to master (up to date). Note git config -get remote.origin.url retrieves the original URL which was set with git remote add. Or git remote set-url. While git ls-remote -get-url origin retrieves the URL which is actually used to access the remote - which might be different in presence of git config -global url.XXX.insteadOf YYY. So both outputs may differ! Also note that git ls-remote -get-url (without origin) does not neccessarily retrieve origin, instead it shows the tracked upstream, so it will fail for example in detached HEAD state.–Dec 7 '14 at 9:27.
Short answer: $ git remote show -n originor, an alternative for pure quick scripts: $ git config -get remote.origin.urlSome info:. $ git remote -v will print all remotes (not what you want). You want origin right?. $ git remote show origin much better, shows only origin but takes too long (tested on git version 1.8.1.msysgit.1).I ended up with: $ git remote show -n origin, which seems to be fastest.
With -n it will not fetch remote heads (AKA branches). You don't need that type of info, right?You can apply grep -i fetch to all three versions to show only the fetch URL.If you require pure speed, then use: $ git config -get remote.origin.urlThanks to for pointing that out.
Announcements from the Moderators:.: Join our live IRC chat by clicking! Use your reddit name as your IRC nick if possible so we know who we are speaking to.Design contest winner:. is the winner of our first ever design contest, Zenith City/Orphan Alley, withRules:.The rules evolve with the needs of the community. Please check here regularly for updates.Don't be a dick.
Consider this the only warning that you will receive.EA employees: You are welcome here. If you wish to identify yourself as an EA employee in the sub, please message the mods so we can verify you. If you wish to participate without identifying yourself as an employee, you don't need to contact us. Please note that if you do identify yourself as an employee in a post, one of the mods will contact you for verification. Falsely impersonating an EA employee will result in a permanent ban.EA Requests: If the moderators are contacted by a verified EA representative, we will work with them regarding reasonable requests directed toward content on the sub.Flair is enabled.
Please use it to indicate your origin name so other people can add you on Tapped Out!.Add threads: Friend requests belong in the monthly 'add me' thread stickied at the top of the sub and linked in the sidebar. New 'add me' posts will be deleted.Asking for other people's login info: Don't do it. This sub does not is not the place for any services that require someone else's login credentials, and posts offering these types of services will be removed. Conversely, if someone asks for your login info, we strongly recommend not giving it to them.
![Origin username checker tool Origin username checker tool](/uploads/1/2/5/3/125364835/539898992.jpg)
There are no 'verified users,' nor is there any type of verification process here. 'Please design my town' type posts will be removed, as well.Repeat posts/topics: Repeat posts (such as posts asking for more land) will be removed. They have been clogging up the front page of the sub and causing squabbles among our members.Personal Squabbles: Keep them out of our community. Attempting to dox, flame, or troll other users is a quick way to be removed from the community.Tips, Tricks, and FAQs: Please provide any additional information you think might be helpful for other members to know! The more information we gather for, the better we can document everything for future players.Screenshots: Screenshots are permitted, but please do not post new topics with screenshots of completed multiple character tasks, your mystery box prizes, your Springfield Downs or Go-Kart Track winnings, Scratch-R winnings, completed corn, or Moe hiding in the burning bush. New topics containing these types of screenshots will be removed. Unless of course you have a serious question.
We understand these can be fun and exciting, but these posts have been clogging this subreddit and starting squabbles between users.Springfield/Account transfers: Offering your town for sale in this subreddit is not allowed.Karma whoring: Low quality/low effort posts will be removed at the discretion of the mods.Important Threads and Links:.: A place to share your Tapped Out town designs.: Subreddit for giving and getting free donuts and more!.