← Back to Community
.gitignore alternative?
Profile icon
slickassassin03

Is there any way to omit the .env file from a GitHub commit?

Answered by AdCharity [earned 5 cycles]
View Answer
Voters
Profile icon
MeMasterMind
Profile icon
Skripthut
Profile icon
DR2K
Profile icon
fermat8
Profile icon
ZofiaBot
Profile icon
devicetr
Profile icon
Vandesm14
Profile icon
PaoloAmoroso
Profile icon
EchoCoding
Profile icon
AdCharity
Comments
hotnewtop
Profile icon
AdCharity

I don't believe so. The best way to do not upload a file would be to not connect your project to a repo and just manually upload the files yourself the hard way. (Basically don't connect the repl project to github and nothing happens)

Profile icon
slickassassin03

@AdCharity Okay, I'll just wait until we get a more complete GitHub panel to connect to a repo.

Profile icon
AdCharity

@slickassassin03 yeah I think if you bother the moderators/actual workers, they'll try to implement the feature if it gathers enough support.

Profile icon
slickassassin03

@AdCharity How might we do that? I'm pretty new to socializing with the Repl community.

Profile icon
AdCharity

@slickassassin03 well honestly, there are a couple options:

  1. there is a discord (should be on the bottom left corner of the screen) for repl
  2. if you find a user with a moderator tag, mention them with @[repl name], which will notify them (probably shouldn't, but if it is important...)
  3. ask a question like this one. If it gathers enough votes, repl will most likely see it. Unfortunately, it's likely not a whole lot of people will upvote (since they are middle schoolers interested in games and not git hub)
    If I missed something here, I'm pretty sure the longer you stay in the community, the sooner you'll find it.
Profile icon
slickassassin03

@AdCharity Thanks, I'll join their Discord and maybe they'll think about omission from commits.

Profile icon
PaoloAmoroso

I've let Repl.it's Jeremy know about the issue as he's working on the new version control features.

Profile icon
PaoloAmoroso

@PaoloAmoroso Jeremy said this is going to be fixed soon.

Profile icon
UltiRequiem

@PaoloAmoroso One year ago...

Profile icon
PaoloAmoroso

@UltiRequiem Let's ask @replitjeremy whether there are any updates.

Profile icon
lemonke

put it in rice.

Profile icon
PaoloAmoroso

@slickassassin03 @UltiRequiem I don't know about .gitignore but now Repl.it does the right thing for .env and GitHub.

When you create or edit .env, the built-in version control system doesn't detect any changes to a REPL's code base and has nothing to commit to GitHub. I checked.

Profile icon
LyndenSylver

@PaoloAmoroso Are you saying that's a way to do a .gitignore w/o having a .gitignore? By using a .env to omit certain file types instead?

Profile icon
PaoloAmoroso

@LyndenSylver I meant that Replit now doesn't commit the .env file to GitHub.

Profile icon
bigslurp

no

Profile icon
slickassassin03

Thank you for any help!