I have problems with the .gitignore file. I did my research and tried many methods. The following steps are performed when I save .gitignore
git rm -rf --cached *.php.* git add . git status git commmit -m "some message"
This is what my .gitignore file looks like:
Here are the files he needs to track from tracking
# Untracked files: # (use "git add <file>..." to include in what will be committed) # # .ajax.php.swn # .ajax.php.swo # .ajax.php.swp # .swervepay.php.swn # .swervepay.php.swo # .swervepay.php.swp # .swervepay_form.php.swm # .swervepay_form.php.swn # .swervepay_form.php.swp
What can I do to save these files using gettin? Every time I add git. and commit to push, these files are added again. Any help would be helpful.
source share