FAQ

IndexTagsArchivesAbout
  • GitHub pull request showing commits that are already in target branch

    2022-03-22

    Question I'm trying to review a pull request on GitHub to a branch that isn't master. The target branch was behind master and the pull request showed commits from master, so I merged master and pushed it to GitHub, but the commits and diff for them still appear in the pull request after refreshing. I've doubled checked that the branch on GitHub has the commits from master. Why are they still appearing in the pull request?…

    #git

  • Git status shows files as changed even though contents are the same

    2022-03-21

    Question I received a git checkout from someone else and am trying to commit the unstaged changes to the local repository. However, a lot (if not every) file appears as modified even though the contents are exactly the same. I already set core.fileMode to false and also set core.autocrlf to false, without success. Worth mentioning is that the Git repo I received was from someone using Windows, while I use Linux.…

    #git

  • How do I migrate an SVN repository with history to a new Git repository?

    2022-03-21

    Question I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like: SVN repository in: svn://myserver/path/to/svn/repos Git repository in: git://myserver/path/to/git/repos git-do-the-magic-svn-import-with-history \ svn://myserver/path/to/svn/repos \ git://myserver/path/to/git/repos I don't expect it to be that simple, and I don't expect it to be a single command. But I do expect it not to try to explain anything - just to say what steps to take given this example.…

    #svn

  • How can I get a value from a cell of a dataframe?

    2022-03-20

    Question I have constructed a condition that extracts exactly one row from my dataframe: d2 = df[(df['l_ext']==l_ext) & (df['item']==item) & (df['wn']==wn) & (df['wd']==1)] Now I would like to take a value from a particular column: val = d2['col_name'] But as a result, I get a dataframe that contains one row and one column (i.e., one cell). It is not what I need. I need one value (one float number). How can I do it in pandas?…

    #python

  • Git diff between current branch and master but not including unmerged master commits

    2022-03-19

    Question I want a diff of all changes in a branch that is not merged to master yet. I tried: git diff master git diff branch..master git diff branch...master However, in each of these cases the diff contains content in master that has not been merged into my branch yet. Is there a way to do a diff between my branch and master that excludes changes in master that have not been merged into my branch yet?…

    #git

  • How to change the remote a branch is tracking?

    2022-03-19

    Question The central repository had to be set up on a new server, so I created a new remote on my local repo, and pushed to that. But now when I do git pull, it claims I am up to date. It's wrong—it's telling me about the old remote branch, not the new one, which I know for a fact has new commits to fetch. How do I change my local branch to track a different remote?…

    #git

  • What is HEAD in Git?

    2022-03-19

    Question You see the Git documentation saying things like The branch must be fully merged in HEAD. But what is Git HEAD exactly? Answer You can think of the HEAD as the "current branch". When you switch branches with git checkout, the HEAD revision changes to point to the tip of the new branch. You can see what HEAD points to by doing: cat .git/HEAD In my case, the output is:…

    #git

  • «
  • 131
  • 132
  • 133
  • 134
  • 135
  • »

©2023 hugo-notepadium-mod

CC BY-NC-SA 4.0 | RSS

Powered by Hugo and the Notepadium-mod

^ TOP ^