Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitIgnore #364

Closed
n00dles opened this issue Nov 3, 2012 · 5 comments
Closed

GitIgnore #364

n00dles opened this issue Nov 3, 2012 · 5 comments

Comments

@n00dles
Copy link
Contributor

n00dles commented Nov 3, 2012

Hi All,

Here is my initial .gitignore file

Anyone know how to prevent the deleted files as the top from being staged to commit.

*** ignore these files as they will be deleted on your local copy when you run setup
admin/install.php
admin/setup.php
admin/update.php
temp.gsconfig.php
temp.htaccess

*** ignore the following as they are created by setup

.htaccess
backups/other/website.xml.bak
backups/users/
data/cache/
data/other/
data/pages/
data/users/
gsconfig.php
sitemap.xml

@ghost ghost assigned n00dles Nov 3, 2012
@n00dles
Copy link
Contributor Author

n00dles commented Nov 3, 2012

Looks like we need to run the following command for each of the 5 deleted files

git update-index --assume-unchanged filename

That stops them being tracked.

@tablatronix
Copy link
Member

Isnt there just a gitignore file we can add to repo

@n00dles
Copy link
Contributor Author

n00dles commented Nov 4, 2012

I've added a .gitignore file to the repo.

But that doesn't cover the files that are deleted as part of setup. So if you fork, and install your local copy those files are deleted from the repo.

So i;ve run the command

git update-index --assume-unchanged filename

for the first 5 filenames and issued a commit.

If you do a clone and run setup and do a 'git status' it should show up as now files.

@tablatronix
Copy link
Member

Why would someone run setup in their local repo ? Or use it live ?

@n00dles
Copy link
Contributor Author

n00dles commented Nov 4, 2012

  1. right I've been doing it wrong all this time... ignore this thread...

@n00dles n00dles closed this as completed Nov 4, 2012
tablatronix added a commit that referenced this issue Aug 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants