Git Commands
Git Commands
git push --force: Forces a push to a remote repository, overwriting its history.
git fetch --tags: Fetches changes from a remote repository, including tags.
147. Example: git fetch --tags origin
git log --oneline: Shows the commit history of the repository in a condensed format.
148. Example: git log --oneline
git pull --rebase=preserve: Fetches changes from a remote repository and rebases the
current branch, preserving merges.
149. Example: git pull --rebase=preserve origin master
git rev-list: Lists the revisions in the repository that are reachable from a given commit.
150. Example: git rev-list HEAD