github - Git unstage committed files before push -
i trying start on adding , committing files before push. every time type in git push origin master -f
error saying files big.
want unstage files pushed, can reselect ones want push. tried
git reset --soft head~1 git rm -r --cached . -f
then type git diff --stat --cached origin/master
, still see files. have tried git reset head
, git reset
. after resets try push , still errors saying trying push big of file. how reset this? want keep of changes have made on local copy.
git reset -- *
unstages files in index, leaves them in working directory.
git reset --mixed head~1
will unstage files index when reset branch