question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copy source branch name without username

See original GitHub issue

Description

I use this button when switching branches, but it copied fisker:print-property instead of just print-property. I can’t paste it after git checkout ___

Screenshot

image

Example URL

https://github.com/refined-github/refined-github/pull/3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fregantecommented, May 1, 2022

a feature to avoid pressing a single keystroke and changing the habit.

selecting the branch name is still possible

Doesn’t seem worth it to me.

1reaction
fregantecommented, Feb 10, 2022

Out of curiosity, what do you think GitHub adds that copy button for?

No idea, never used it, it doesn’t make any sense to include the username, and if it doesn’t make sense to you I suggest contacting GitHub too. Maybe it does make sense and changing it breaks someone’s workflow.

so I don’t need [to] hit ctrl + C

You’re asking for a feature to avoid pressing a single keystroke and changing the habit. Doesn’t seem worth it to me.

There are a million ways to check out PRs and they’re available on the page. I don’t think we need to change the behavior of a button to add one more way to do things. Also selecting the branch name is still possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I clone a single branch in Git? - Stack Overflow
You need to specify the branch name with -b command switch. Here is the syntax of the command to clone the specific git...
Read more >
How to Clone a Single Branch in Git - W3docs
This short tutorial will help you to clone a single and specific branch in Git. ... git remote add -t <branch-name> -f origin...
Read more >
How to git clone a specific branch only - TheServerSide.com
To only git clone a specific branch and no others. To accomplish the first git clone branch objective, issue the following command: git...
Read more >
Git Clone Specific Branch: A How-To Guide - Career Karma
On Career Karma, learn how to clone a specific branch from a Git repository using the git clone --single-branch command.
Read more >
git-clone Documentation - Git
Clones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository (visible using git branch -- ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found