Git – diff command
Git – diff command git diff command This command is used to display the difference between 2 commits. Example Find the commits by running below command git log –oneline Now to check the difference of data between 2 commits git…
Git – diff command git diff command This command is used to display the difference between 2 commits. Example Find the commits by running below command git log –oneline Now to check the difference of data between 2 commits git…
Git – .gitignore file In the .gitignore (hidden) file we add those entries of the files which are not part of the git local repo but these files are present in your git working directory. You can also use the…
Git revert command git revert command will undo the changes for a particular commit and unlike git reset command it will not delete the commit details. Prerequisite:- A local repo where you are running the below commands. Step1 :-> Create a file called package.json and…
Git reset command git reset command It is used to delete the recent commits ( Like last commit or last 2 commits etc.) and with the help of this command’s options, you can reset the state of commits…
Git Squash Git Squash commit To squash in Git means to combine multiple commits into one. You can do this at any point in time (by using Git’s “Interactive Rebase” feature), though it is most often done when merging branches. Please note…
Git Workflow Commands Below is the example for git workflow and it shows the different stages with git commands to manage local and global repositories (I am using Git Lab but you can use Github also) Local Repo:- git Remote…
Git Configuration Git configuration is a convenient way to set up the global or local configuration for a git project. Whenever we create the project and store it in the local repo then we need to mention the author’s name…
Create a Git-hub account Git-hub It is a remote repository that is available on internet. You can create a free account to manage your repositories publicly or privately. Create an account on Git-hub Step 1: Goto Github and Click on the Signup…
Git Installation Steps git It is a version control system for tracking the changes in the source code on the local OS. Installation On Windows Step 1: Goto git-scm website and Click on Downloads for Windows button and then click on 64-bit Git for Windows Setup.…
Version Control System It is a repository which maintains the changes to a file(s) over time so that you can recall a specific version later. A repository can be thought as database changes. It contains all the edits and historical…