git-commit - git patch - Commit only part of a file in Git
git commit, push / git
When I make changes to a file in Git, how can I commit only some of the changes?
$ git stash -u Saved working directory and index state WIP on master: 47a1413 ... $ git checkout -p stash ... step through patch hunks $ git commit -m "message for 1st commit" $ git checkout -p stash ... step through patch hunks $ git commit -m "message for 2nd commit" $ git stash pop
git-amend - git commit --amend --no-edit - How to modify existing, unpushed commit messages? git-fetch - git fetch vs pull vs rebase - What is the difference between 'git pull' and 'git fetch'? git undo add file - How do I undo 'git add' before commit? git undo add - How do I undo the most recent local commits in Git? git pull remote branch - How do I force “git pull” to overwrite local files? git-rebase - how to delete a commit in github - Delete commits from a branch in Git git-branch - git cherry-pick commit from another branch - Move the most recent commit(s) to a new branch with Git git-checkout - git checkout remote branch and track - How do I check out a remote Git branch? git-branch - git delete all local branches - How do I delete a Git branch locally and remotely? version-control - git rename file - How do I rename a local Git branch?