Introduction to Git Git is a source-code control system that allows multiple developers to work on the same project. Each developer has a copy of the repository on his workstation, and can check in changes to that repository and synchronize it with a central server. Other developers can then fetch those changes by synchronizing their …
Showing 3 Result(s)
After adding .gitignore file use following commands
git rm -r --cached .
git commit -m ".gitignore is now working"
Make sure to commit first your changes you want to keep. The –cached option will keep your files untouched on your disk though. Other more solution: git rm --cached `git ls-files -i --exclude-standard` Files with space in their paths In case you get an error message like fatal: path spec ‘…’ did not …
Reset your git project to last working commit and pull updated code for that branch. Here master branch is used for example. git reset --hard origin/master git pull origin master