FAQ

IndexTagsArchivesAbout
  • How can I check out a GitHub pull request with git?

    2023-04-11

    Question I'd like to check out a previously created pull request (created via GitHub web interface). I searched and found different places where a refs/pull or refs/pull/pr But when I add fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to the git config file and do a git fetch What I'm doing wrong? Should GitHub create automatically the pull/xyz stuff, or do I have to configure something? Answer To fetch a remote PR into your local repo,…

    #git

  • Start ssh-agent on login [closed]

    2023-04-11

    Question Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. </div> This question does not appear to be about programming within the scope defined in the help center. Closed 2 years ago. Improve this question I have a site as a remote Git repo pulling from Bitbucket.com using an SSH alias. I can manually start the ssh-agent on my server but I have to do this every time I login via SSH.…

    #git

  • Delete all local git branches

    2023-04-08

    Question I follow a development process where I create a new local branch for every new feature or story card. When finished I merge the branch into master and then push. What tends to happen over time due to a combination of laziness or forgetfulness, is that I end up with a large list of local branches, some of which (such as spikes) may not have been merged. I know how to list all my local branches and I know how to remove a single branch but I was wondering if there was a git command that allows me to delete all my local branches?…

    #git

  • How can I stash only staged changes in Git?

    2023-04-08

    Question Is there a way I can stash just my staged changes? The scenario I'm having issues with is when I've worked on several bugs at a given time, and have several unstaged changes. I'd like to be able to stage these files individually, create my .patch files, and stash them away until the code is approved. This way, when it's approved I can stash my entire (current) session, pop that bug and push the code.…

    #git

  • Generating statistics from Git repository [closed]

    2023-04-07

    Question Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers. </div> We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 2 years ago. The community reviewed whether to reopen this question 3 months ago and left it closed:…

    #git

  • Git push error '[remote rejected] master -> master (branch is currently checked out)'

    2023-04-07

    Question Yesterday, I posted a question on how to clone a Git repository from one of my machines to another, How can I 'git clone' from another machine?. I am now able to successfully clone a Git repository from my source (192.168.1.2) to my destination (192.168.1.1). But when I did an edit to a file, a git commit -a -m "test" and a git push, I get this error on my destination (192.…

    #git

  • Global Git ignore

    2023-04-07

    Question I want to set up Git to globally ignore certain files. I have added a .gitignore file to my home directory (/Users/me/) and I have added the following line to it: *.tmproj But it is not ignoring this type of files, any idea what I am doing wrong? Answer You need to set up your global core.excludesfile configuration file to point to this global ignore file e.g: *nix or Windows git bash:…

    #git

  • «
  • 26
  • 27
  • 28
  • 29
  • 30
  • »

©2023 hugo-notepadium-mod

CC BY-NC-SA 4.0 | RSS

Powered by Hugo and the Notepadium-mod

^ TOP ^