> git checkout remotes/origin/masterNote: checking out 'remotes/origin/master'.You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make inthisstate without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, youmaydo so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_nameHEAD is now at 92d34d1... Fix for Bug #42
git: reset
> git reset HEAD .Unstaged changes after reset:M staging.txt
git: reset --hard
> git reset --hard HEADHEAD is now at 843b9e2 New File
git: revert
> git revert HEAD --no-edit[master c51cb80] Revert "Commit To Revert" 1 file changed, 1 insertion(+), 1 deletion(-)
git: merge
> git merge remotes/origin/masterAuto-merging staging.txtCONFLICT (add/add): Merge conflict in staging.txtAutomatic merge failed; fix conflicts and then commit the result.
> git log --pretty=oneline --reverse new_branch04f9ee31280e8eac0dce9c2429d1e9f04f893dc3 Readme Fileebc00f664c71e29651bd83c0de50f1b2f499c797 Initial commit, no items56069f957e372c0acd31516cb98d71888c1ec104 Initial listfa7f29afb2f376ce0a59bc86006068dce75b6592 Creating Second List4ee69e6e85566b41b35bc8e3bc2f3ef58f67e8be Adding final items to the list
> git cherry-pick new_branch~1