How to use the git switch command

Two new commands introduced in the git version 2.23, git restore and git switch. Git restore command is used to do many undo operations, read more about it here. To switch branches we can use the git switch command. It is similar to the checkout command. The following ways we can use the git switch … Read more

How to use git restore command

Git restore command can be used for many undo operations. Git version 2.23.0 introduced git restore command, the current version of your git command can be checked using the command. Unmodify a file Git restore command can used to revert file changes. Suppose we have project repository with one file readme. From the above git … Read more