About 1,140,000 results
Open links in new tab
  1. git - How can I roll back 1 commit? - Super User

    I have 2 commits that I did not push: $ git status # On branch master # Your branch is ahead of 'faves/master' by 2 commits. How can I roll back my first one (the oldest one), but keep the …

  2. How can I revert back to a Git commit? - Super User

    Dec 25, 2012 · Git commit only saves it to the stage, which is locally on your computer. Use Push to update it to a remote server (Like github). Use git revert <ID> to revert back to a previous …

  3. git - How do I reset 'master' to 'origin/master'? - Super User

    May 10, 2017 · Originally suggested: Something like: $ git checkout master # remember where the master was referencing to $ git branch previous_master # Reset master back to …

  4. How do I backup a git repo? - Super User

    33 I am planning to switch from SVN to git. With SVN I just copy my repo folder when I want to back it up. However git doesn't have one so what do I do? Should I create a clone on a …

  5. git - How to amend the last commit to un-add a file? - Super User

    Jan 5, 2011 · I have modified two files a, b in the last commit. But file b should not be commited, what's the workflow to amend this?

  6. Is there a way to redo a merge in git? - Super User

    Dec 21, 2013 · 0 try git checkout . git merge --abort this will undo any local changes during merge, and then revert back to pre-merge state. if you already did a commit or merge continue, you'll …

  7. clone - how to go back after a bad git pull - Super User

    When you clone a repo with git, you get the repo's full history, from the first commit to the last, however, since you made a shallow clone, you only have the history depth that you specified. …

  8. GIT as a backup tool - Server Fault

    Dec 15, 2011 · Using git as a backup mechanism can be attractive, and despite what other folks have said, git works just fine with binary files. Read this page from the Git Book for more …

  9. How to ignore a tracked file in git without deleting it?

    This is what you want to do: Add all the files, individually or in a folder, that you want to remove from the repo but keep locally to .gitignore. Execute git rm --cached put/here/your/file.ext for …

  10. How to get git bash back in Windows Explorer context menu

    Yes, you have to de-install the old version before installing the new one. IIRC the installer checks for an older version and either removes it or tells you to do that, I don't recall. In Git-1.8.3 …