VA-11 Hall-A Bar
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@canpolat@programming.devM to Git@programming.devEnglish • 1 year ago

Git alias idea: "git browse" to open repo in browser

hachyderm.io

external-link
message-square
4
42
external-link

Git alias idea: "git browse" to open repo in browser

hachyderm.io

@canpolat@programming.devM to Git@programming.devEnglish • 1 year ago
message-square
4
Dan Schroeder (@deadlydog@hachyderm.io)
hachyderm.io
external-link
Attached: 1 image My most used #git alias? "git browse" to open the repo's remote URL in the web browser. Works for #GitHub, #AzureDevOps, #BitBucket, etc. Set it up with: git config --global alias.browse 'start `git config remote.origin.url`' "start" only works on Windows tho. Requires a https (not ssh) remote git URL. The screenshot shows additional "echo" code in the .gitconfig file because I like my git aliases to display the actual code they are executing before they run it.
  • @SpaceNoodle@lemmy.world
    link
    fedilink
    15•1 year ago

    “start” only works on Windows tho.

    Ah, so it’s completely useless

    • @canpolat@programming.devOPM
      link
      fedilink
      English
      16•1 year ago

      I believe you can replace start with the command that is suitable for your system (e.g., xdg-open for linux).

Git@programming.dev

!git@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !git@programming.dev

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

  • Official Git project site
  • Pro Git book

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

  • 11 users / day
  • 15 users / week
  • 18 users / month
  • 363 users / 6 months
  • 3.45K subscribers
  • 251 Posts
  • 732 Comments
  • Modlog
  • mods:
  • Ategon
  • @canpolat@programming.dev
  • Jason Novinger
  • BE: 0.19.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org