Monday 29 June 2015

Git don't dos

There are several things that Git does not like.

For one thing, you could not replace an existing folder with an updated one copied from elsewhere. Git tells you "git changes not staged for commit modified content". Git does not operate that way by deletion and replacement. The changes have to be incremental.

For another thing, make sure there is no git repo in the subfolder of the current repo.

If you want to go back to an earlier version of the code, use git checkout <commit id>, instead of git revert.

No comments:

Post a Comment