About 10,900,000 results
Open links in new tab
  1. How do I squash my last N commits together? - Stack Overflow

    git reset --soft HEAD~3 && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})" Both of those methods squash the last three commits into a single new …

  2. How do I delete a Git branch locally and remotely?

    Jan 5, 2010 · Don't forget to do a git fetch --all --prune on other machines after deleting the remote branch on the server. ||| After deleting the local branch with git branch -d and deleting …

  3. How can I install and use "make" in Windows? - Stack Overflow

    I'm following the instructions of someone whose repository I cloned to my machine. I want to use the make command as part of setting up the code environment, but I'm using Windows. I …

  4. How do I force "git pull" to overwrite local files?

    Jul 14, 2009 · How do I force an overwrite of local files on a git pull? My local repository contains a file of the same filename as on the server. error: Untracked working tree file 'example.txt' …

  5. How do I discard unstaged changes in Git? - Stack Overflow

    For all unstaged files in current working directory use: git restore . For a specific file use: git restore path/to/file/to/revert That together with git switch replaces the overloaded git checkout …

  6. How do I clone a specific Git branch? - Stack Overflow

    Git clone will clone remote branch into local. Is there any way to clone a specific branch by myself without switching branches on the remote repository?

  7. How do I install a Python package with a .whl file?

    Jan 11, 2015 · pip install some-package.whl Note: if pip.exe is not recognized, you may find it in the "Scripts" directory from where python has been installed. If pip is not installed, this page …

  8. How do I change the URI (URL) for a remote Git repository?

    I had to do this on an old version of git (1.5.6.5) and the set-url option did not exist. Simply deleting the unwanted remote and adding a new one with the same name worked without …

  9. How do I determine the source branch of a particular branch?

    I have a branch in git and want to figure out from what branch it originally was branched and at what commit. Github seems to know, since when you do a pull request it usually automatically …

  10. How do I resolve ClassNotFoundException? - Stack Overflow

    Sep 9, 2016 · I am trying to run a Java application, but getting this error: java.lang.ClassNotFoundException: After the colon comes the location of the class that is …