To show changes between commits, branches, or tags. Syntax: git diff
Continue reading...Learn2Done
Git Upstream Branch
To set upstream branch for the current branch. Syntax: git push –set-upstream remote_name branch_name Example: git push –set-upstream Main test
Continue reading...Git Push
To push local changes to a remote repository. Syntax: git push remote_name branch_name Example: git push Main test
Continue reading...Git Pull
To pull remote changes and merge into the current branch. Syntax: git pull
Continue reading...Git Merge Changes
To merge changes from a different branch. Syntax: git merge branch_name Example: git merge test
Continue reading...Git Fetch
To fetch the latest changes from a remote repository. Syntax: git fetch
Continue reading...Git Reverse Local
To discard local changes. Syntax: git restore file_name Example: git restore test
Continue reading...Git Unstage Changes
To unstage changes. Syntax: git restore –staged file_name Example: git restore –staged test
Continue reading...