Add .gitignore to project.
If available, try to set Environment by request header field 'ticket'.
If a ticket exists in the header field 'ticket', use this to establish a repository connection. Otherwise, try with session.environment.