How To Undo Last Commit In Git?

How To Undo Last Commit In Git?

Commits are used to put new versions to the source code. But some commits can be unwanted and required to undo the last commit. Also, wrong files can be committed accidentally which requires undoing the last command. Undo the Last Commit (Soft) The undo the last command can be done with the git reset command. … Read more

How To Delete Git Branch (Locally and Remotely)?

How To Delete Git Branch (Locally and Remotely)?

Git branches are an important part of the git. By using branches the codebase can be easily developed by different developers or groups and then merged again. After the development is complete and changes are merged into the main branch other development branches can be deleted. There are two types of branches called local branch … Read more

Git Tag (Tagging) Tutorial

Git Tag (Tagging) Tutorial

Like most source version control systems, the git provides the tags or tagging mechanism in order to set tags for specific versions. Tags are used to set simple and short names for versions like “development”, “v1”, “v1beta” etc. In this tutorial we examine how to work with tags like listing, setting, searching, and removing tags … Read more

Git Revert Commit Command Tutorial

Git Revert Commit Command Tutorial

Git provides the git revert command in order to revert an existing commit. The git revert can be used with a commit checksum to revert back to this commit easily. The git revert command can be also used with different commit specifiers like HEAD , Commit Checksum , Branch Name etc git revert Command Syntax … Read more

Git Username and Email Address Configuration

Git Username and Email Address Configuration

Git is one of the most popular version control systems which works locally or in a distributed way. Multiple developers or testers can use a single repository for commits, tags, updates, etc. Every user commit is identified with its username and email address. The Git configuration is used to set and use the current user … Read more

How To Comment Out In CSS?

How To Comment Out In CSS?

CSS or Cascade Style Sheet provides comments in order to explain CSS code. The comment out operation simply converts a valid and interpreted CSS code into a comment which does not interpret and applied to the defined HTML web page. The commenting out is used to inactive single or multiple CSS code which can be … Read more

PHP Comment Tutorial

PHP Comment Tutorial

As a programming and scripting language PHP provides the comments in order to add description and notes to the code. This description is called a comment and not executed or interpreted by PHP. PHP comments can be used to explain the function, variable, code block, etc. Single-Line Comment with Hash Sign Similar to the other … Read more

JSON Comment Tutorial

JSON Comment Tutorial

JSON or JavaScript Object Notation is a data format, or object notation used to store information in a simple human-readable and easy to consume format. JSON is not a programming or scripting language but used by Programming and scripting languages like JavaScript, PHP, Python, C#, Java, etc. The JSON does not provide a native way … Read more