The benefits of using version control

Version control or source control is a tool that helps users keep track of all the changes on files in a project. It is like a time capsule, it allows users to go back to the versions saved before. That is, no matter what horrible mistakes you make on your files, you can always go back to the last clean state and pretend nothing happened. It is not only good for personal use but also for a group of people collaborating together on the same project.

Read More

Git Commands

These are the Git commands that I used a lot in my job. Stash all the files including untracked new files. git stash save -u "stash_name" Undo merge or rebase. git merge --abort git rebase --abort Remove all the files which are not in git (untracked new files). git clean -xfd Discard all the local changes. git checkout -f Reset to previous steps like undo the commit.

Read More