Git reset --hard is powerful but you can easily lose code forever. Software developers need to use git reset hard quickly, and we show you an optional undo facility.
Git reset --hard is powerful but you can easily lose code forever. Software developers need to use git reset hard quickly, and we show you an optional undo facility.
Git commit --amend is a powerful tool to fix problem commits, add files and more. We show you how to use it.
Git stash is a feature in Git SCM that lets you save your work when you’re not ready to commit. Read more to find out how to use it.
Adding files to Git using 'git add' can be more complex and subtle than you think. Get all the solutions here.
How to achieve a Git partial commit of a file, instead of the whole of it. We show you how to commit one hunk at a time, interactively, simply and safely.
If you have local untracked files that need to be replaced with Git repository ones, how do you do it without losing anything? We show you how.
Whether you need to alter just the last Git commit you made, or a number of them, this shows you to make Git amend a commit message.
You’ve made one or more commits, and now realise they’re on entirely the wrong branch. So how can you make Git move a commit to another branch, either a new branch, or perhaps an existing one?
How can you git ignore committed files? We show you how to ignore files which have previously been committed to Git source control.
Although amending a previous commit with git reset is simple, what happens when you have multiple commits to undo, perhaps keeping the existing working files?