FAQ

IndexTagsArchivesAbout
  • How do you roll back (reset) a Git repository to a particular commit? [duplicate]

    2023-07-13

    Question This question already has answers here: </div> How do I revert a Git repository to a previous commit? (41 answers) Closed 9 years ago. I cloned a Git repository and then tried to roll it back to a particular commit early on in the development process. Everything that was added to the repository after that point is unimportant to me so I want to omit all subsequent changes from my local source code.…

    #git

  • Search all of Git history for a string [duplicate]

    2023-07-12

    Question This question already has answers here: </div> How to grep commits based on a certain string? (9 answers) Closed 9 years ago. I have a code base which I want to push to GitHub as open source. In this Git-controlled source tree, I have certain configuration files which contain passwords. I made sure not to track this file and I also added it to the .gitignore file. However, I want to be absolutely positive that no sensitive information is going to be pushed, perhaps if something slipped in-between commits or something.…

    #git

  • What is the difference between git pull and git fetch + git rebase?

    2023-07-12

    Question Another question says that git pull is like a git fetch + git merge. But what is the difference between git pull and git fetch + git rebase? Answer It should be pretty obvious from your question that you're actually just asking about the difference between git merge and git rebase. So let's suppose you're in the common case - you've done some work on your master branch, and you pull from origin's, which also has done some work.…

    #git

  • How to create a remote Git repository from a local one?

    2023-07-11

    Question I have a local Git repository. I would like to make it available on a remote, ssh-enabled, server. How do I do this? Answer I think you make a bare repository on the remote side, git init --bare, add the remote side as the push/pull tracker for your local repository (git remote add origin URL), and then locally you just say git push origin master. Now any other repository can pull from the remote repository.…

    #git

  • rejected master -> master (non-fast-forward)

    2023-07-11

    Question I'm trying to push my project (all files in a new repository). I follow the steps but when I push with git push -u origin master I get this error: ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:asantoya/projectnewbies.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (e.g. 'git pull') before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details.…

    #git

  • Shuffle DataFrame rows

    2023-07-11

    Question I have the following DataFrame: Col1 Col2 Col3 Type 0 1 2 3 1 1 4 5 6 1 ... 20 7 8 9 2 21 10 11 12 2 ... 45 13 14 15 3 46 16 17 18 3 ... The DataFrame is read from a CSV file. All rows which have Type 1 are on top, followed by the rows with Type 2, followed by the rows with Type 3, etc.…

    #python

  • How to convert SSH keypairs generated using PuTTYgen (Windows) into key-pairs used by ssh-agent and Keychain (Linux)

    2023-07-10

    Question I've generated key pairs using PuTTYgen and been logging in using Pageant, so that I have to enter my pass-phrase only once when my system boots. How do I achieve this in Linux? I've heard of keychain but I hear that it uses a different key pair format - I don't want to change my Windows keys and it would be nice if I could seamlessly connect in the same manner in both Windows and Linux.…

    #git

  • «
  • 6
  • 7
  • 8
  • 9
  • 10
  • »

©2023 hugo-notepadium-mod

CC BY-NC-SA 4.0 | RSS

Powered by Hugo and the Notepadium-mod

^ TOP ^