SDF Chatter
  • 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
fedilink
36
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
fedilink
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
    arrow-up
    15
    arrow-down
    8
    ·
    1 year ago

    “start” only works on Windows tho.

    Ah, so it’s completely useless

    • canpolat@programming.devOPM
      link
      fedilink
      English
      arrow-up
      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.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 53 users / month
  • 425 users / 6 months
  • 31 local subscribers
  • 3.28K subscribers
  • 248 Posts
  • 983 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • Jason Novinger@programming.dev
  • canpolat@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org