Git
What is Git and how to use it.
What is Git?
Install
Pushing Local Code to a Remote Repository
# set the origin to the remote repo
git remote add origin <repoUrl>
# push local code to the remote main branch
git push -u origin mainCloning Repositories Locally
Merging Code
Merge Conflicts
Fork
Rebasing
Merging
Rebasing
Squashing Commits
Cherry Picking
Reverting Commits
Keeping Commit History
Undoing Commit
Stashing
Reflog
Useful Commands
General
Branches
Modify Terminal to show current git branch
Last updated