git - Smartgit not seeing old files added back after reset -
yesterday did deleting , removed (ye know typical case). upon reading blogs smartgit resetted revision left off before deletes. got old files git not detect them being there i'm unable push them server again. ideas? tried looking in gitignore file , in excludes in info folder nothing there -edit- tried force push.
the steps used are
- going logs - select revision - press ctr+r (reset) - selected hard reset , confirmed
let's had commits: a->b->c->d d commit 1 deleted much. checked out c again. of course, git detects files, since there aren't changed since c you're looking at, git status won't show anything.
a push fail since you're trying rewrite history of remote, need git push -f (that's -f --force see https://www.kernel.org/pub/software/scm/git/docs/git-push.html )
Comments
Post a Comment