To reset to a specific commit and discard all subsequent changes. Syntax: git reset commit_hash –hard
Continue reading...Git
Git Revert Commit & Local
To discard local changes and revert to the last commit. Syntax: git checkout — file_name Example: git checkout — ProgramJava
Continue reading...Git Remove Remote Repo
To remove a remote repository. Syntax: git remote remove remote_name Example: git remote remove Practice-Programs
Continue reading...Git Add Remote Repo
To add a remote repository. Syntax: git remote add remote_name repository_url Example: git remote add Practice-Programs https://github.com/gaurav077021/Practice-Programs.git
Continue reading...Git Specifc History
To show the changes introduced by a specific commit. Syntax: git show commit_hash
Continue reading...Git Summarized History
To show a summarized version of the commit history. Syntax: git log –oneline
Continue reading...Git Show Changes
To show changes between commits, branches, or tags. Syntax: git diff
Continue reading...