git git 4,877

  1. How to undo the most recent commits in Git?
  2. How do I delete a Git branch both locally and remotely?
  3. What is the difference between 'git pull' and 'git fetch'?
  4. How to modify existing, unpushed commits?
  5. How to undo 'git add' before commit?
  6. How do I rename a local Git branch?
  7. How to revert Git repository to a previous commit?


  8. How to remove local (untracked) files from the current Git working tree?
  9. How do I check out a remote Git branch?
  10. How do I force “git pull” to overwrite local files?
  11. How to resolve merge conflicts in Git?
  12. How do I discard unstaged changes in Git?
  13. Move the most recent commit(s) to a new branch with Git
  14. How do I push a new local branch to a remote Git repository and track it too?
  15. How to clone all remote branches in Git?
  16. How to make Git “forget” about a file that was tracked but is now in .gitignore?
  17. How can I add an empty directory to a Git repository?
  18. Reset or revert a specific file to a specific revision using Git?
  19. Reset or revert a specific file to a specific revision using Git?
  20. Make an existing Git branch track a remote branch?
  21. How do I remove a submodule?
  22. Undo a Git merge that hasn't been pushed yet
  23. How do I update a GitHub forked repository?
  24. Change the URI (URL) for a remote Git repository
  25. How do you create a remote Git branch?
  26. How can I determine the URL that a local Git repository was originally cloned from?
  27. Delete commits from a branch in Git
  28. View the change history of a file using Git versioning
  29. Move existing, uncommitted work to a new branch in Git
  30. Remove a file from a Git repository without deleting it from the local filesystem
  31. Undoing a git rebase
  32. Stash only one file out of multiple files that have changed with Git?
  33. Reset local repository branch to be just like remote repository HEAD
  34. Find and restore a deleted file in a Git repository
  35. Difference between “git add -A” and “git add .”
  36. Commit only part of a file in Git
  37. Squash my last X commits together using Git
  38. Ignore files that have already been committed to a Git repository
  39. Do a “git export” (like “svn export”)?
  40. How to list all the files in a commit?
  41. How to change the author and committer name and e-mail of multiple commits in Git?
  42. How to clone a specific Git branch?
  43. How to delete a git remote tag?
  44. How do I make Git ignore file mode (chmod) changes?
  45. I ran into a merge conflict. How can I abort the merge?
  46. How do I make Git use the editor of my choice for commits?
  47. src refspec master does not match any when pushing commits in git
  48. Showing which files have changed between two revisions
  49. How do you clone a Git repository into a specific folder?
  50. How to modify a specified commit in git?