FAQ

IndexTagsArchivesAbout
  • How to delete a stash created with git stash create?

    2022-09-07

    Question Git stash seems to do a lot of what I want, except that it is a little hard to script, as the if you have no changes, then git stash; git stash pop will do something different than if you do have changes in your repository. It appears that git stash create is the answer to that problem, and everything works, except for one thing… I can't get rid of the created stash.…

    #git

  • How to amend a commit without changing commit message (reusing the previous one)?

    2022-09-05

    Question Is there a way to amend a commit without vi (or your $EDITOR) popping up with the option to modify your commit message, but simply reusing the previous message? Answer Since Git 1.7.9 you can also use git commit --amend --no-edit to get your result. Note that this will not include metadata from the other commit such as the timestamp or tag, which may or may not be important to you.…

    #git

  • Commit specific lines of a file to git [duplicate]

    2022-09-04

    Question This question already has answers here: </div> Closed 11 years ago. Possible Duplicate: How can I commit only part of a file in git How do I commit a few specific line ranges from a file to git? while ignoring some other line changes in the same file. Answer Try git add -p -- it will interactively let you add, skip, or split diff hunks.

    #git

  • Delete a column from a Pandas DataFrame

    2022-09-04

    Question To delete a column in a DataFrame, I can successfully use: del df['column_name'] But why can't I use the following? del df.column_name Since it is possible to access the Series via df.column_name, I expected this to work. Answer The best way to do this in Pandas is to use drop: df = df.drop('column_name', axis=1) where 1 is the axis number (0 for rows and 1 for columns.) Or, the drop() method accepts index/columns keywords as an alternative to specifying the axis.…

    #python

  • Error 'git' is not recognized as an internal or external command

    2022-09-04

    Question I have an installation of Git for Windows, but when I try to use the git command in Command Prompt, I get the following error: 'git' is not recognized as an internal or external command, operable program or batch file. How do I fix this problem? Answer You may not have set your PATH correctly to point at your Git installation. You need to add the following paths to PATH:…

    #windows

  • What are some examples of commonly used practices for naming git branches? [closed]

    2022-09-03

    Question Closed. This question is opinion-based. It is not currently accepting answers. </div> Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 7 years ago. The community reviewed whether to reopen this question last year and left it closed: Original close reason(s) were not resolved Improve this question I've been using a local git repository interacting with my group's CVS repository for several months, now.…

    #git

  • Git and Mercurial - Compare and Contrast

    2022-09-02

    Question For a while now I've been using subversion for my personal projects. More and more I keep hearing great things about Git and Mercurial, and DVCS in general. I'd like to give the whole DVCS thing a whirl, but I'm not too familiar with either option. What are some of the differences between Mercurial and Git? Note: I'm not trying to find out which one is "best" or even which one I should start with.…

    #git

  • «
  • 91
  • 92
  • 93
  • 94
  • 95
  • »

©2023 hugo-notepadium-mod

CC BY-NC-SA 4.0 | RSS

Powered by Hugo and the Notepadium-mod

^ TOP ^