Is there a way to hide a String automatically before commiting using Intellij's git implementation? I have a java class like this:
public class TGBot extends TelegramLongPollingBot {
public void onUpdateReceived(Update update) {
KChat.handleUpdateEvent(update);
}
public String getBotUsername() {
return "karatekbot";
}
public String getBotToken() {
return "xxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
}
I'd like to replace the real token with a placeholder so it is not available on GitHub. Is there any way how to do so?
Thanks
~Jens