zoiec
4/3/2017 - 3:50 PM

Git Commands

Git Commands

--Rebase Commit--
git log
git rebase -i <sha>
git push origin <branch> --force

s for sqash

--Delete All Changes--
git checkout -- .

--Check the Diff--
git diff <branch> <file>

-- Commit no message change --
git commit --amend --no-edit

git fetch origin
git reset --hard origin/master